From:             php dot bug at hebbron dot com
Operating system: SuSE Linux 9.1
PHP version:      5.0.3
PHP Bug Type:     Class/Object related
Bug description:  get_class_methods output has changed between 5.0.2 and 5.0.3

Description:
------------
Using the code below, the output from get_class_methods is different
between versions 5.0.2 and 5.0.3. This missing data is breaking some of
our code. Is this change intended - I can't see it mentioend in the docs.

Reproduce code:
---------------
abstract class space{
        function __construct(){}
        abstract protected function unfold();
}

abstract class shape extends space{
        protected final function unfold(){}
}

abstract class quad extends shape{
        function buggy(){
                $c = get_class($this);
                $a = get_class_methods(get_class($this));
                $b = get_class_methods($this);
                print($c."\n".'a:');
                print_r($a);
                print('b:');
                print_r($b);
        }
}

class square extends quad{}

$a = new square();
$a->buggy();

Expected result:
----------------
square
a:Array
(
    [0] => buggy
    [1] => unfold
    [2] => __construct
)
b:Array
(
    [0] => buggy
    [1] => unfold
    [2] => __construct
)

Actual result:
--------------
square
a:Array
(
    [0] => buggy
    [1] => __construct
)
b:Array
(
    [0] => buggy
    [1] => __construct
)

-- 
Edit bug report at http://bugs.php.net/?id=32296&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32296&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32296&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32296&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32296&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32296&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32296&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32296&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32296&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32296&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32296&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32296&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32296&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32296&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32296&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32296&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32296&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32296&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32296&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32296&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32296&r=mysqlcfg

Reply via email to