Fun with set_error_handler
I'm using a combination of set_error_handler and set_exception_handler in an attempt to prevent any PHP generated errors from ever making it to the output buffer. If either is called, the user is redirected to a generic error page and the error or exception is logged.
I understand neither ever getting called when there is a parse error of some sort, but it's also not being called for
Fatal error: Call to a member function functionname() on a non-object in \path\to\file.php on line 1
Obviously this is an error, but it's not a parsing error so I don't understand why it doesn't call my error handler.
Does anyone know of anything else that isn't caught by these? Anyway around it not catching them?
I understand neither ever getting called when there is a parse error of some sort, but it's also not being called for
Fatal error: Call to a member function functionname() on a non-object in \path\to\file.php on line 1
Obviously this is an error, but it's not a parsing error so I don't understand why it doesn't call my error handler.
Does anyone know of anything else that isn't caught by these? Anyway around it not catching them?
