Aggregation is not aggregating all methods properly.
| Bug #24871 | Aggregation is not aggregating all methods properly. | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-07-30 09:00 UTC | Modified: | 2003-07-31 21:17 UTC | ||
| From: | php at webdevelopers dot cz | Assigned: | |||
| Status: | Closed | Package: | Class/Object related | ||
| PHP Version: | 4.3.1 | OS: | Red Hat Linux 7.3 | ||
| Private report: | No | CVE-ID: | None | ||
[2003-07-30 09:00 UTC] php at webdevelopers dot cz
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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-07-31 21:17 UTC] iliaa@php.net