1 2 3 4 5 6 7 8
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, $errno, 0, $errfile, $errline); } set_error_handler("exception_error_handler"); foo();
1 2
Fatal error: Call to undefined function foo() on line 8