Re: [PHP-DEV] Re: exit() via exception

2019-10-11 Thread Andreas Hennings
What about a new keyword in addition to "catch"? (exact keyword would be up for discussion) try { } catchExit ($exit) { } Or, how far would we get if we do not make this catchable, and (perhaps) not run any "finally" block? Could this already solve some of the technical problems, without breakin

[PHP-DEV] Re: exit() via exception

2019-10-11 Thread Mark Randall
On 11/10/2019 12:05, Nikita Popov wrote: This does mean though that existing code using catch(Throwable) is going to catch exit()s as well. This can be avoided by introducing *yet another* super-class/interface above Throwable, which is something I'd rather avoid. If it is caught, could the exi