set_error_handler() not catching some errors

From: Date: Sun, 10 Feb 2002 00:36:18 +0000
Subject: set_error_handler() not catching some errors
Groups: php.general 
Request: Send a blank email to php-general+get-84147@lists.php.net to get a copy of this message
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");

« previous php.general (#84147) next »