Re: [PHP] set_error_handler() not catching some errors
Thanks Mike. I updated display_errors = On and now I see the errors. Charlie > Sounds like you have your php.ini configured to not display errors, since > you are not seeing the parse error message in your HTML output... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] set_error_handler() not catching some errors
At 04:36 PM 2/9/2002 -0800, Charlie Killian wrote: >But others like not including a semicolon returns nothing: >$d = 3 > >The page is not returned there is no error and the page is stopped being >parsed. This is by design. Quoting from http://bugs.php.net/bug.php?id=9386: [17 Jun 2001 4:56am] [EMAIL PROTECTED] FATAL errors are not passed through user error handlers due to the fact the engine may be unstable and this could present security issues, instead the engine reports the error via its default mechanism as described in php.ini and then shutsdown as gracefully as possible. - James Sounds like you have your php.ini configured to not display errors, since you are not seeing the parse error message in your HTML output... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] set_error_handler() not catching some errors
set_error_handler() is passing some errors like: $d = x; Use of undefined constant x - assumed 'x' But others like not including a semicolon returns nothing: $d = 3 The page is not returned there is no error and the page is stopped being parsed. Any ideas? My handler function: Function errorHandler($errno, $errstr, $errfile, $errline) { print($errstr); print($errfile); print("Line: " . $errline); // Exit the script to fix the error. exit(); } // Set the error handler. set_error_handler("errorHandler"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php