From: php at webdevelopers dot cz
Operating system: Red Hat Linux 7.3
PHP version: 4.3.1
PHP Bug Type: Class/Object related
Bug description: Aggregation is not aggregating all methods properly.
Description:
------------
aggrgate() does not aggregate the method that has the name similar to the
name of the constructor...?
Reproduce code:
---------------
<?php
class a {
function a() {
echo "CREATED A;";
}
}
class b {
function bb() {
echo "BB();";
}
function xbb() {
echo "XBB();";
}
}
$a=new a();
aggregate($a, "b");
$a->xbb();
$a->bb();
?>
Expected result:
----------------
CREATED A;XBB();BB();
Actual result:
--------------
CREATED A;XBB()
Fatal error: Call to undefined function: bb() in test.php on line 28
--
Edit bug report at http://bugs.php.net/?id=24871&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24871&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24871&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24871&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24871&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24871&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24871&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24871&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24871&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24871&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24871&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24871&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24871&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24871&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24871&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24871&r=gnused