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-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

Reply via email to