Re: [RFC] [VOTE] Transform exit() from a languageconstructinto a standard function
| From: | Tim Düsterhus | Date: | Thu, 08 Aug 2024 16:17:54 +0000 |
| Subject: | Re: [RFC] [VOTE] Transform exit() from a languageconstructinto a standard function | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124833@lists.php.net to get a copy of this message | ||
Hi
On 8/6/24 00:55, Christoph M. Becker wrote:
So, what are the cons: * removing the ZEND_EXIT opcode That immediately breaks any extension using it. A quick Github search lists 3.1 k occurrences[1].For me this is a pro, because it makes the implementation simpler going forward: The engine, the JIT and extensions have one fewer Opcode they need to deal with / take into account / test. Anything that is capable of handling functions that throw exceptions will be capable of handling the proposed exit() function. Best regards Tim Düsterhus