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