Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124833 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id D7DEA1A00B7 for ; Thu, 8 Aug 2024 16:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723133980; bh=bClbrQhw/Mrdf12UJcdr8K37gCfXCpWXnzfNmnV8S7g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EUs33oIW9X5QPHwP8/aFpqZX2ZEjY5diUhgVesb+TGActy41D3x9OnXYJ72UQ6Nrv zGB/svVLIa4kwVFjtYDyCvdder4EBwqmhWs/ug2EtyzNpnK93o6pvvEXWu/9kJIrot H4n443ghtrtVthOWhL854FrVqaErJJlrDJJdL3Eu9GzFxZhDIR9q4fcPCtNHgy8G98 7mw1lPWjmcVZBu0lmql4uJUnv+iT5qsSbsXHupRNzN2KdAz/4hXHilB+3wHeTH/99a PZGc/77ufQ0DVEJJAwroMsd6wFR94vSmOjJRoEiFAbAaIr/CF6JLX/WrDOKww81dBf KhgkdjHTOYUzQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BFED8180042 for ; Thu, 8 Aug 2024 16:19:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 8 Aug 2024 16:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1723133875; bh=mtA8aNvG5SaSez8Amdb9R56FlJI6IMCHJVcNDm+FK5Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=IQlernzo+zuN7/PvQfQ44p3u+TYpZHrts2+gVJ6H1UGJOX1ODdRpy0y28/YuVQLEW MI1TxZJtopXRW8COYVjEydQly7/tPBm5t6FB7NuVy+ALEj9DUZ88fmlypOmayqnF7m HLfjZZEzgOWSMtCcCwK5SzjvAJFX02hQnQ2PwaHaME2PsrUMT1nh5HDlbVFWtB+m9Z E4pMjX0SHy1f5TK1EtL+ocUIl6CkyZfnQgesAF/kFQAl508ERxZ6GHf+/MXWWLMUO4 rfxC/hB+Xt2jMwnHjCIeLzYaie3/4pVnrM5hT15mYR0y+IPi8b5LteF2sAv6N7Fn9t 4eNhhekErt1Wg== Message-ID: <1f8a747d-a785-4d22-9f3c-78b63a2db3c3@bastelstu.be> Date: Thu, 8 Aug 2024 18:17:54 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a languageconstructinto a standard function To: "Christoph M. Becker" , "Gina P. Banyard" Cc: Derick Rethans , PHP internals References: <15bb76a0-cbd7-4145-b429-76d424755106@gmx.de> <1a8650d2-7eb5-d645-8132-e5522ad24637@php.net> <06ba1d82-6387-46ac-8be3-1d3472993e1a@gmx.de> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) 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