capturing "Fatal error: Call to undefined function xxx&
Posted: Fri Jan 04, 2008 3:59 pm
Hello,
I'm writing my own error logging handler function that writes php errors to disk. I cannot figure out how to capture errors that come from calling an undefined function or malformed php statements. If I set php to display all errors, I can see these errors displayed on my browser, however these errors don't appear to invoke my error handler function.
Here are the php calls I'm making to setup my error logger:
Am I missing something here?
THanks
I'm writing my own error logging handler function that writes php errors to disk. I cannot figure out how to capture errors that come from calling an undefined function or malformed php statements. If I set php to display all errors, I can see these errors displayed on my browser, however these errors don't appear to invoke my error handler function.
Here are the php calls I'm making to setup my error logger:
Code: Select all
ini_set( 'error_reporting', E_ALL );
ini_set( 'display_errors', 'Off' );
ini_set( 'log_errors', 'On' );
// the error logging function
function myErrorHandler( $p_number, $p_string, $p_file, $p_line, $p_context )
{
// ...
}
set_error_handler( 'myErrorHandler' );THanks