Re: [RFC] [VOTE] Transform exit() from a language constructinto a standard function
| From: | Tim Düsterhus | Date: | Mon, 05 Aug 2024 16:52:14 +0000 |
| Subject: | Re: [RFC] [VOTE] Transform exit() from a language constructinto a standard function | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124779@lists.php.net to get a copy of this message | ||
Hi
On 8/5/24 14:52, Christoph M. Becker wrote:
Hmm, so far I only had skimmed the RFC and the related discussions, but now I checked out the suggested implementation[1]. Then I tried to build with PECL/uopz, and of course that failed because ZEND_EXIT is no longer there. Okay, quickly drop that usage; build succeeds. Then I ran <?php uopz_set_return("exit", function () {echo "hello";}, true); exit; ?> And got hello Previously, no output was echoed. While that seems to be fixable inFrankly from a userland developer PoV this looks entirely correct: If I override the
exit() function, then I expect the exit() function to be overridden.
Best regards
Tim Düsterhus