Possible Duplicate:
How do I catch a PHP Fatal Error
I want to create a custom error handler but PHP ignores it still uses the built in error handler. The example below gives a built in fatal error because test() is not defined:
function critical_error($error_number,$error_string,$error_file,$error_line,$error_context) { echo "<strong>error:</strong> echo ".$error_string; exit(); } set_error_handler("critical_error",8191); test(); exit; Any advice?