Hi!

> Actually, I don't call this intended. This is just as much as a BC break 
> as the original implementation where Errors where also Exceptions. IMO, 
> set_exception_handler() should be changed - with my preference it not 
> capturing Error, and instead have an additional set_throwable_handler().

Could you explain why? As I understand, set_exception_handler() is
needed to provide a backstop for the cases when all else fails and allow
for ordered shutdown, nice error message, logging, etc. With this in
mind, catching all Throwable's is well within this function. So what
would be the case for having two separate functions for this task and
what would be the case for using one that only catches half of the
runaway exceptions (throwables) but not the other half?
-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to