Re: set_exception_handler catches all Throwables
| From: | Niklas Keller | Date: | Wed, 19 Aug 2015 14:13:29 +0000 |
| Subject: | Re: set_exception_handler catches all Throwables | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87802@lists.php.net to get a copy of this message | ||
>
> I agree with this completely. I think the point here is that
> catch(Exception $e) remains unchanged while setting a handler actually
> catches more things now. Tbh I feel like this is an oversight in
> implementing the Error/Throwable rfc and should be addressed now, otherwise
> it can't be changed until 8 if I understand correctly.
>
The difference is that
catch (Exception $e) can be found in many places,
whereas set_exception_handler is a global per application thing.
Regards, Niklas