On 05.08.2016 at 01:37, Sara Golemon wrote: > On Thu, Aug 4, 2016 at 11:10 AM, Bishop Bettini <bis...@php.net> wrote: > >> Or, alternatively, I wonder if a method to convert an exit to an exception >> would be better: > > Eh... That feels less-obvious to me for the reasons you stated in your > OP. I'm not convinced that being able to recover from an > \ExitException is a good thing, but I don't have a compelling reason > why it's bad, so I'll keep thinking about that.
That could be useful for testing. uopz allows to overload ZEND_EXIT (PHP 5 only, not sure why that has been removed in the PHP 7 version), and there's also a respective request for runkit: <https://github.com/zenovich/runkit/issues/49>. -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php