Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123283 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 74AD81A009C for ; Thu, 9 May 2024 13:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715261861; bh=cHgbUMU7zT0DeQwYvNUPlU/KG0SGDDc/IPeUAII7Hwk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=NEXAzs82ZBASONhGoFCzBbDuHOQUiOxIsttG4sETKA0W4986lzl8rKu5lTXAu79/0 2kei4dMRG3wXA11ZnjoqsEVCrWWq1IEndawJajGnwjOSJpapzYzRKqs/sRiCbfcEuw Vjrc0pKrXaC1uZf9jy5g8+2B4XIT7UBdzwzdzvRotVvPrvj8vGH62q66w+7Yw5Vq9s ujv/S/2rWebd0aiAdJpmjpTUmdWWbreUvF8G2QXv5yhKKXo1Ivy9+17N0yo2x08a47 cbNQfEwDLH5b12RLCiBhBmWQcQdo3LzZLCc7y3GSa+9QYEZE4WwzE0gxG8bDuKOrDY Ua0gIwiZyGdNQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5B9C8180718 for ; Thu, 9 May 2024 13:37:40 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_PASS, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Thu, 9 May 2024 13:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715261809; bh=cHgbUMU7zT0DeQwYvNUPlU/KG0SGDDc/IPeUAII7Hwk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=C4J0dfPgoR25lHB200qlOOKf3H8vmSD5MvDr4lxPpTMNTb8chPBe3p32CqPbJCTXV OC/45VXkzHu7A9qErpDxF0w5rwrLQa6Qrv3antXClJ+BqFLNxASDKqNCWzMXgQR46h Bkfr9pQyjCCkwfiMEyPzCxZsPeBIrtEdA4GabQ9GrCZX/HYtlGzz+soF8zDzfKLMHq jWogA5Cz51hdAk0TOde2BwcMVTZjhG7/D323slt4twmwg0v8Dmwox8Xu2ojYPokqNv tw/dEWfal1m3r3gaAE5PhPWfBHuUXCL0YtoclMrO495dBaco2Pub0Y6JgDcJODbSaq zvDWHHKuUG4DA== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 8DB0210C4F7; Thu, 09 May 2024 14:36:49 +0100 (BST) Date: Thu, 9 May 2024 14:36:49 +0100 (BST) To: =?UTF-8?Q?Fl=C3=A1vio_Heleno?= cc: Niels Dossche , internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function In-Reply-To: Message-ID: <0a30b095-149d-cb45-3f54-3d904774c139@php.net> References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-362329610-1715261809=:3952" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-362329610-1715261809=:3952 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 9 May 2024, Fl=C3=A1vio Heleno wrote: > On Thu, May 9, 2024 at 7:51=E2=80=AFAM Niels Dossche > wrote: >=20 > > On 08/05/2024 15:40, Gina P. Banyard wrote: > > > Hello Internals, > > > > > > I would like to formally propose my idea for exit() as a function=20 > > > brought up to the list on 2024-02-24 [1] with the following RFC:=20 > > > https://wiki.php.net/rfc/exit-as-function > > > > > > There have been some slight tweaks to the implementation, namely=20 > > > that the transformation from a "constant" to a function is done at=20 > > > compile time and we do not hook into the behaviour of constants=20 > > > any longer. > > > > > > Let me know what you think. > > > > Thanks for proposing this, I'm in favor of this change because this=20 > > creates more consistency. >=20 > Is there a list of other "functions" that are handled as "constants"? I don't think there are any other "functions" like this. That's why removing the special case for "exit" and "die" is a good=20 idea. cheers, Derick --8323329-362329610-1715261809=:3952--