Annotation of embedaddon/php/Zend/tests/bug63468.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #63468 (wrong called method as callback with inheritance)
        !             3: --FILE--
        !             4: <?php
        !             5: class Foo
        !             6: {
        !             7:        public function run()
        !             8:        {
        !             9:                return call_user_func(array('Bar', 'getValue'));
        !            10:        }
        !            11: 
        !            12:        private static function getValue()
        !            13:        {
        !            14:                return 'Foo';
        !            15:        }
        !            16: }
        !            17: 
        !            18: class Bar extends Foo
        !            19: {
        !            20:        public static function getValue()
        !            21:        {
        !            22:                return 'Bar';
        !            23:        }
        !            24: }
        !            25: 
        !            26: $x = new Bar;
        !            27: var_dump($x->run());
        !            28: --EXPECT--
        !            29: string(3) "Bar"
        !            30: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>