Bug #11803 Updated: call to undefined function not caught by set_error_handler
| From: | mfischer@php.net | Date: | Sun, 09 Jun 2002 21:24:37 +0000 |
| Subject: | Bug #11803 Updated: call to undefined function not caught by set_error_handler | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-9954@lists.php.net to get a copy of this message | ||
ID: 11803
Updated by: mfischer@php.net
Reported By: sbs@adobe.com
-Status: Analyzed
+Status: Closed
Bug Type: Documentation problem
Operating System: sunos 5.7
PHP Version: 4.0.6
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2001-06-29 14:09:31] sniper@php.net
FATAL levels of errors are not passed to the user
defined error handler. This is documentation problem.
Also, the example script on the set_error_handler() manual
page is a bit buggy.
--Jani
------------------------------------------------------------------------
[2001-06-29 13:01:35] sbs@adobe.com
$ok=1;
function sionna($errno, $errmsg) {
global $ok;
$ok=0;
}
set_error_handler('sionna');
xslt_errno();
If xslt_errno is configured into php, $ok will be 1.
If xslt_errno is not configured into php, the script will die noisily,
or quietly if error_reporting(0).
Same deal with eval() -- it also doesn't let you probe for
undefined functions.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11803&edit=1