Annotation of embedaddon/php/Zend/tests/lsb_013.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ZE2 Late Static Binding is_callable() and static::method()
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class Test1 {
                      7:        static function test() {
                      8:                var_dump(is_callable("static::ok"));
                      9:                var_dump(is_callable(array("static","ok")));
                     10:        }
                     11: }
                     12: 
                     13: class Test2 extends Test1 {
                     14:        static function ok() {
                     15:        }
                     16: }
                     17: Test1::test();
                     18: Test2::test();
                     19: ?>
                     20: --EXPECT--
                     21: bool(false)
                     22: bool(false)
                     23: bool(true)
                     24: bool(true)

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