Re: [RFC DISCUSSION] Error Storage Behavior
| From: | Fleshgrinder | Date: | Sun, 26 Jun 2016 07:08:59 +0000 |
| Subject: | Re: [RFC DISCUSSION] Error Storage Behavior | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94257@lists.php.net to get a copy of this message | ||
On 6/11/2016 5:48 PM, Fleshgrinder wrote:
> Currently error_get_last() always contains the last error that occurred,
> however, this is actually not desired if the last error was an exception
> that was caught.
>
> https://github.com/php/php-src/pull/1936
>
> With the above change only uncaught exceptions are retrievable via
> error_get_last(). This is consistent with the behavior of custom error
> handlers that successfully handle the error; they are not retrievable
> via error_get_last(0.
>
> Note that this change is a breaking change since users might rely on
> exactly this behavior. However, it is undocumented and there is a bug
> report for it too:
>
> https://bugs.php.net/bug.php?id=54043
>
Any feedback here? Should we treat it as a simple bug fix?
--
Richard "Fleshgrinder" Fussenegger
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc