Re: Core functions throwing exceptions in PHP7
| From: | Stanislav Malyshev | Date: | Sat, 25 Jul 2015 00:43:36 +0000 |
| Subject: | Re: Core functions throwing exceptions in PHP7 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87284@lists.php.net to get a copy of this message | ||
Hi!
> 1. E_WARNING - fail open, possibly cause security problems for the user
> 2. E_ERROR - fail closed, but make graceful handling a pain in the neck
Can't you just catch Error just as you would catch an Exception? Of
course, it's less clean than specialized exception but I don't see why
it's not an option.
--
Stas Malyshev
smalyshev@gmail.com