#38942 [Opn->Ver]: Double old-style-ctor inheritance
| From: | bjori@php.net | Date: | Sun, 24 Sep 2006 18:16:44 +0000 |
| Subject: | #38942 [Opn->Ver]: Double old-style-ctor inheritance | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102599@lists.php.net to get a copy of this message | ||
ID: 38942
Updated by: bjori@php.net
Reported By: hannes dot magnusson at gmail dot com
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5CVS-2006-09-24 (CVS)
New Comment:
Patch: http://php.is/bugs/38942/bug38942.patch.txt
Previous Comments:
------------------------------------------------------------------------
[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