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

From: sbs <email protected>
Operating system: sunos 5.7
PHP version: 4.0.6
PHP Bug Type: *General Issues
Bug description: call to undefined function not caught by set_error_handler

$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 Bug report at: http://bugs.php.net/?id=11803&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>