|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-31 21:17 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
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