note 130465 added to function.set-exception-handler
| From: | ohcc@163.com | Date: | Sat, 30 Aug 2025 14:28:22 +0000 |
| Subject: | note 130465 added to function.set-exception-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222323@lists.php.net to get a copy of this message | ||
An error triggered in the exception handler can be handled in the shutdown function using
error_get_last(), that error will be taken as a fatal error no matter what level it is originally
of.
If an exception is thrown in the exception handler, the exception will NOT be handled by the
exception handler, instead it will be converted to a fatal error that can be handled by the shutdown
function.
As of PHP 8.3, an exception thrown in the shutdown function can be caught and handled by the global
exception handler.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 101.206.224.180)
----
Manual Page -- https://php.net/manual/en/function.set-exception-handler.php
Edit -- https://main.php.net/note/edit/130465
Del: integrated -- https://main.php.net/note/delete/130465/integrated
Del: useless -- https://main.php.net/note/delete/130465/useless
Del: bad code -- https://main.php.net/note/delete/130465/bad+code
Del: spam -- https://main.php.net/note/delete/130465/spam
Del: non-english -- https://main.php.net/note/delete/130465/non-english
Del: in docs -- https://main.php.net/note/delete/130465/in+docs
Del: other reasons-- https://main.php.net/note/delete/130465
Reject -- https://main.php.net/note/reject/130465
Search -- https://main.php.net/manage/user-notes.php