According to the comment on this answer it is possible to catch Fatal Errors through a shutdown function which cannot be caught using set_error_handler().
set_error_handler()
I use "ob_start" for this.
function fatal_error_handler($buffer) { if (preg_match("|(Fatal error:)(.+)|", $buffer, $regs) ) { //Your code } return $buffer; } ob_start("fatal_error_handler");