← Back
Editing: 010.phpt
--TEST-- register_shutdown_function() & __call --FILE-- <?php class test { function _foo() { throw new Exception('test'); } function __call($name=null, $args=null) { return test::_foo(); } } try { register_shutdown_function(array("test","__call")); } catch (TypeError $exception) { echo $exception->getMessage() . "\n"; } echo "Done\n"; ?> --EXPECT-- register_shutdown_function(): Argument #1 ($callback) must be a valid callback, non-static method test::__call() cannot be called statically Done
Save File
Cancel