#38942 [Asn->Csd]: Double old-style-ctor inheritance
| From: | dmitry@php.net | Date: | Tue, 03 Oct 2006 09:59:47 +0000 |
| Subject: | #38942 [Asn->Csd]: Double old-style-ctor inheritance | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103042@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: 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] bjori@php.net
(re-open as a reminder, see:
http://news.php.net/php.cvs/40710)
------------------------------------------------------------------------
[2006-09-26 07:57:32] dmitry@php.net
Fixed in CVS HEAD and PHP_5_2.
------------------------------------------------------------------------
[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