From:             hannes dot magnusson at gmail dot com
Operating system: *
PHP version:      5CVS-2006-09-24 (CVS)
PHP Bug Type:     Scripting Engine problem
Bug description:  Double old-style-ctor inheritance

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 bug report at http://bugs.php.net/?id=38942&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38942&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38942&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38942&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38942&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38942&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38942&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38942&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38942&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38942&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38942&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38942&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38942&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38942&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38942&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38942&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38942&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38942&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38942&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38942&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38942&r=mysqlcfg

Reply via email to