Bug #11803 Updated: call to undefined function not caught by set_error_handler

From: Date: Fri, 29 Jun 2001 18:09:32 +0000
Subject: Bug #11803 Updated: call to undefined function not caught by set_error_handler
Groups: php.dev 
Request: Send a blank email to php-dev+get-58478@lists.php.net to get a copy of this message
ID: 11803 Updated by: sniper Reported By: sbs@adobe.com 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@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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11803&edit=2

« previous php.dev (#58478) next »