ID: 38942 Updated by: [EMAIL PROTECTED] Reported By: hannes dot magnusson at gmail dot com -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: * PHP Version: 5CVS-2006-09-24 (CVS) Assigned To: dmitry New Comment:
Fixed in CVS HEAD and PHP_5_2. Previous Comments: ------------------------------------------------------------------------ [2006-09-28 11:47:33] [EMAIL PROTECTED] (re-open as a reminder, see: http://news.php.net/php.cvs/40710) ------------------------------------------------------------------------ [2006-09-26 07:57:32] [EMAIL PROTECTED] Fixed in CVS HEAD and PHP_5_2. ------------------------------------------------------------------------ [2006-09-24 18:16:44] [EMAIL PROTECTED] Patch: http://php.is/bugs/38942/bug38942.patch.txt ------------------------------------------------------------------------ [2006-09-24 18:14:33] hannes dot magnusson at gmail dot com Description: ------------ The engine seems to register old-style-ctors twice, once during parent-ctor-inheriting and once during normal-method-inheriting Reproduce code: --------------- <?php class foo { public function foo() {} } class bar extends foo { } ReflectionClass::export("bar"); Expected result: ---------------- - Methods [1] { Method [ <user, inherits foo, ctor> public method foo ] { @@ /usr/src/php/5.2/bug.php 3 - 3 } Actual result: -------------- - Methods [2] { Method [ <user, inherits foo, ctor> public method foo ] { @@ /usr/src/php/5.2/bug.php 3 - 3 } Method [ <user, inherits foo, ctor> public method foo ] { @@ /usr/src/php/5.2/bug.php 3 - 3 } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38942&edit=1