Re: Tracing exit()
| From: | Dan Ackroyd | Date: | Thu, 04 Aug 2016 21:11:47 +0000 |
| Subject: | Re: Tracing exit() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94837@lists.php.net to get a copy of this message | ||
Hi Bishop,
It would be good to preserve contexts to make debugging easier.
> I wonder if a method to convert an exit to an exception
> would be better:
That doesn't sound like a good plan. There are times when exiting
almost straight away is the correct thing to do. If we changed exit()
to not do that, it would mean there would be a need for a exit_real()
that does exit straight away.
cheers
Dan