#50446 [Ver->Opn]: Missing documentation or bug for SET_EXCEPTION_HANDLER()
| From: | randallgirard at hotmail dot com | Date: | Fri, 11 Dec 2009 20:11:40 +0000 |
| Subject: | #50446 [Ver->Opn]: Missing documentation or bug for SET_EXCEPTION_HANDLER() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3450@lists.php.net to get a copy of this message | ||
ID: 50446
User updated by: randallgirard at hotmail dot com
-Summary: Missing documentation for SET_EXCEPTION_HANDLER()
Reported By: randallgirard at hotmail dot com
-Status: Verified
+Status: Open
Bug Type: Documentation problem
Operating System: Windows
PHP Version: 5.3.1
New Comment:
I added a new bug for feature request at the following, explaining more
of a WHY reason for such a situation.
Mainly in my situation though, is because I am combining
SET_ERROR_HANDLER with SET_EXCEPTION_HANDLER, and the ERROR_HANDLER
fires ErrorException, as noted in the documentation.
Therefor, even though my ERROR_HANDLER processes the $errnum correctly,
script execution still terminates when for example E_USER_NOTICE or
E_USER_WARNING happens, and no way for me to write a work around for
this.
Previous Comments:
------------------------------------------------------------------------
[2009-12-11 20:10:46] bjori@php.net
replace that "*must*" with an RCC2119 SHOULD
------------------------------------------------------------------------
[2009-12-11 20:08:09] bjori@php.net
To process *unhandled* exceptions.
If your application throws an exception you don't expect, then you
*must* have an exception handler that catches that exception, logs it,
and prints a pretty error page for your user.
Maybe we should add a tip or a better usecase/description? (re-opening)
------------------------------------------------------------------------
[2009-12-11 19:41:00] randallgirard at hotmail dot com
What is the reason for this functionality, if you cannot return to
processing of the script?
------------------------------------------------------------------------
[2009-12-11 09:55:54] rquadling@php.net
As does the Description ...
"Execution will stop after the exception_handler is called."
Nothing additional required.
------------------------------------------------------------------------
[2009-12-11 09:34:47] rquadling@php.net
The example does show this, but some additional words may be useful.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50446
--
Edit this bug report at http://bugs.php.net/?id=50446&edit=1