php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #11803 call to undefined function not caught by set_error_handler
Submitted: 2001-06-29 13:01 UTC Modified: 2002-06-09 17:24 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sbs at adobe dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: sunos 5.7
Private report: No CVE-ID: None
 [2001-06-29 13:01 UTC] sbs at adobe dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-29 14:09 UTC] 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

 [2002-06-09 17:24 UTC] mfischer@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC