|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66195 restore_error_handler() from the error_handler
Submitted: 2013-11-28 21:30 UTC Modified: 2013-12-04 12:06 UTC
From: david at grudl dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david at grudl dot com
New email:
PHP Version: OS:


 [2013-11-28 21:30 UTC] david at grudl dot com
In documentation is note:

> Calling restore_error_handler() from the error_handler function is ignored.

I've tried it in all PHP versions from 5.3.0 to 5.5.6 and it seems that it works and is not ignored.

Test script:

set_error_handler(function() {
	echo 'one';

set_error_handler(function() {
	echo 'two';

trigger_error('', E_USER_NOTICE);
trigger_error('', E_USER_NOTICE);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-04 12:06 UTC]
Automatic comment from SVN on behalf of krakjoe
Log: fix #66195 restore error handler is not ignored (zend_builtin_functions.c#1570)
 [2013-12-04 12:06 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-12-04 12:06 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

 [2020-02-07 06:08 UTC]
Automatic comment on behalf of krakjoe
Log: fix #66195 restore error handler is not ignored (zend_builtin_functions.c#1570)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 22:03:51 2023 UTC