[PHP-DOC] Bug #11803 Updated: call to undefined function not caught by set_error_handler From: sniper <email protected>
Date: 06/29/01

ID: 11803
Updated by: sniper
Reported By: sbs <email protected>
Old-Status: Open
Status: Analyzed
Old-Bug Type: *General Issues
Bug Type: Documentation problem
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:

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

Previous Comments:
---------------------------------------------------------------------------

[2001-06-29 13:01:35] sbs <email protected>
$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.

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11803&edit=2