#38942 [Ver->Asn]: Double old-style-ctor inheritance

From: Date: Mon, 25 Sep 2006 17:08:59 +0000
Subject: #38942 [Ver->Asn]: Double old-style-ctor inheritance
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102649@lists.php.net to get a copy of this message
ID: 38942 Updated by: dmitry@php.net Reported By: hannes dot magnusson at gmail dot com -Status: Verified +Status: Assigned Bug Type: Scripting Engine problem Operating System: * PHP Version: 5CVS-2006-09-24 (CVS) -Assigned To: +Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2006-09-24 18:16:44] bjori@php.net 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

« previous php.bugs (#102649) next »