Req #66195 [Opn->Csd]: restore_error_handler() from the error_handler
| From: | krakjoe@php.net | Date: | Wed, 04 Dec 2013 12:06:43 +0000 |
| Subject: | Req #66195 [Opn->Csd]: restore_error_handler() from the error_handler | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10679@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66195&edit=1
ID: 66195
Updated by: krakjoe@php.net
Reported by: david at grudl dot com
Summary: restore_error_handler() from the error_handler
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-12-04 12:06:25] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=332260
Log: fix #66195 restore error handler is not ignored (zend_builtin_functions.c#1570)
------------------------------------------------------------------------
[2013-11-28 21:30:48] david at grudl dot com
Description:
------------
In documentation http://us2.php.net/restore_error_handler 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:
---------------
<?php
set_error_handler(function() {
echo 'one';
});
set_error_handler(function() {
echo 'two';
restore_error_handler();
});
trigger_error('', E_USER_NOTICE);
trigger_error('', E_USER_NOTICE);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66195&edit=1