Annotation of embedaddon/php/ext/standard/tests/class_object/forward_static_call_002.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: forward_static_call() from outside of a class method.
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class A
                      7: {
                      8:        public static function test() {
                      9:                echo "A\n";
                     10:        }
                     11: }
                     12: 
                     13: function test() {
                     14:        forward_static_call(array('A', 'test'));
                     15: }
                     16: 
                     17: test();
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: Fatal error: Cannot call forward_static_call() when no class scope is active in %s on line %d

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