Req #54548 [Com]: needed a way to define multiple error handlers
Edit report at https://bugs.php.net/bug.php?id=54548&edit=1
ID: 54548
Comment by: alex dot schuch at gmx dot de
Reported by: giorgio dot liscio at email dot it
Summary: needed a way to define multiple error handlers
Status: Open
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: all
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (3 messages)