Annotation of embedaddon/php/ext/standard/tests/general_functions/010.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: register_shutdown_function() & __call
                      3: --FILE--
                      4: <?php
                      5: class test {
                      6:         function _foo() {
                      7:                 throw new Exception('test');
                      8:         }
                      9:         function __call($name=null, $args=null) {
                     10:                 return test::_foo();
                     11:         }
                     12: }
                     13: 
                     14: var_dump(register_shutdown_function(array("test","__call")));
                     15: 
                     16: echo "Done\n";
                     17: ?>
                     18: --EXPECTF--    
                     19: Fatal error: Non-static method test::__call() cannot be called statically in %s on line %d

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