Re: Tracing exit()
| From: | Christoph Becker | Date: | Fri, 05 Aug 2016 09:10:08 +0000 |
| Subject: | Re: Tracing exit() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94850@lists.php.net to get a copy of this message | ||
On 05.08.2016 at 01:37, Sara Golemon wrote:
> On Thu, Aug 4, 2016 at 11:10 AM, Bishop Bettini <bishop@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