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

-- 
Richard "Fleshgrinder" Fussenegger

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to