Bug #13934 Updated: set_error_handler is ignored for parse errors
| From: | derick@php.net | Date: | Mon, 05 Nov 2001 16:00:50 +0000 |
| Subject: | Bug #13934 Updated: set_error_handler is ignored for parse errors | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69650@lists.php.net to get a copy of this message | ||
ID: 13934
Updated by: derick
Reported By: lars@ioflux.net
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: solaris and linux
PHP Version: 4.0.6
New Comment:
You can't catch parse errors (or any other error with error_level E_ERROR).
Not a bug > bogus.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-11-05 10:35:33] lars@ioflux.net
The example script below fails to catch parse errors (line 12 is a parse error):
<?php
error_reporting(E_ALL);
$old_error_handler = set_error_handler("myErrorHandler");
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
echo "Hi, I am an error of type: '$errno' wit message:
'$errmsg'<br>\n";
}
print;
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13934&edit=1