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