I can use set_error_handler() to catch most PHP errors, but it doesn\'t work for fatal (E_ERROR) errors, such as calling a function that doesn\'t e
set_error_handler()
E_ERROR
Not really. Fatal errors are called that, because they are fatal. You can't recover from them.