Req #54548 [Opn->Wfx]: needed a way to define multiple error handlers
| From: | cmb@php.net | Date: | Thu, 05 Aug 2021 14:08:59 +0000 |
| Subject: | Req #54548 [Opn->Wfx]: needed a way to define multiple error handlers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235615@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54548&edit=1
ID: 54548
Updated by: cmb@php.net
Reported by: giorgio dot liscio at email dot it
Summary: needed a way to define multiple error handlers
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: all
PHP Version: 5.3.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Given there was no traction on this ticket for more than ten
years, and that it is already possible to call the previously set
error handler from your own error handler, I'm closing this as
WONTFIX.
If anybody still feels this would be a valuable feature addition,
please pursue the RFC process[1].
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2011-07-19 12:06:46] alex dot schuch at gmx dot de
I have encountered the very same problem.
set_error_handler() returns the previously installed error handler, so maybe it can be called using
call_user_func() somehow. The example (PHP manual) of set_error_handler() actually stores the
previously installed error handler but does not use it.
------------------------------------------------------------------------
[2011-04-16 20:15:07] giorgio dot liscio at email dot it
Description:
------------
hi, since a lot of [debug]frameworks/libs relies on set_error_handler would be nice to have a way to
provide a stack of error handlers (like spl autoload stack, ticks etc)
register_error_handler($callback, /* prepend */ TRUE | FALSE)
and
unregister_error_handler
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54548&edit=1