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

1.1     ! misho       1: --TEST--
        !             2: ZE2 Late Static Binding call to static::method() from internal function (string)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class Test1 {
        !             7:        static function ok() {
        !             8:                echo "bug";
        !             9:        }
        !            10:        static function test() {
        !            11:                call_user_func("static::ok");
        !            12:        }
        !            13: }
        !            14: 
        !            15: class Test2 extends Test1 {
        !            16:        static function ok() {
        !            17:                echo "ok";
        !            18:        }
        !            19: }
        !            20: Test2::test();
        !            21: ?>
        !            22: --EXPECT--
        !            23: ok

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