Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123289 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 4A13F1ADA76 for ; Thu, 9 May 2024 14:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715264921; bh=Bxq1XQ856OQbCy+ndh5LnXjecOG9mimT4X1IR7gEkXE=; h=In-Reply-To:References:Date:From:To:Subject:From; b=fXnPcQ+yBwlDVgLT9lr6dD3cCjQ2Rc/aINQDsmkwLu+5Cil2jqypvKV7IG4YE867T g1jttR4bfFVWtTk3swWlMphbFIi9O1T10BzHa8IWORwnAU7yxV7G0QRTPiOb92mmWp hX95jlRYfkCHoVTmSDsJSWSMayHTIeZIp2i+RVHOmmLYP48yhgYLMn+PcTJLEq8lEX FaWzfy7BQxk5XYryz9ncgqxAX4ClhN3PefNIUGILG6zHC3a9RMx9Tv87W2NJVsxzTo YI1f+DSkSjhX06kUDR+mmVFAVcYa8ETuFyf6TQ2oS3Ey288N3OcrobMypzMCdmxq2o nUEP32PqlaHfA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2B6E0180742 for ; Thu, 9 May 2024 14:28: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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from wfhigh5-smtp.messagingengine.com (wfhigh5-smtp.messagingengine.com [64.147.123.156]) (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, 9 May 2024 14:28:37 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id DEDB41800115 for ; Thu, 9 May 2024 10:27:47 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 09 May 2024 10:27:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1715264867; x= 1715351267; bh=NbanM0JqZpzYvDz5uRYDnqkF9/rJKz8d3RoY4yPrVsQ=; b=j lXebaQfW7se3L/pDJ7pTxNxDdQgibg+uH4HGSo04fAN9UuHBNZsYtnYngYyN2Tmf j7b3S1El24LeaF0wjLF9VyPUUNGncTdJKQ5wse9Lhdq02A6qGj4xd3CZpBCmjLZO 1yzTBN9/eeluJe3EY/rDBbdiZh7n8e6RasaveJX9lKOvsRfytgZzQgm1oYFDv9aE QnWcH17aJ0cVRStLS14ZUYwIlH0tkCjdLFTwsaHAJta4lzscQMy9yAF0inTg3+x5 JqZYWMRyDROmqsdJZTi0FldecVWbQ/CGYi/3DSJ29z/j5fvcfa7+KQ0gtH9F625u 6ruOofZsRJC/yUsCvs+Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715264867; x=1715351267; bh=NbanM0JqZpzYvDz5uRYDnqkF9/rJ Kz8d3RoY4yPrVsQ=; b=jJfW/fQKeiyrjWSD4xhE+5h8UOb98+3Bz7QqCDmHDddX 5sjQxh47SuTUUPyFSvBGKWtdXrVkfqejS43xPSI15WNyNlfPCa3Wa8HJUlD1Enml Rhd8JYCN6h30KcK+xcax1pkd6Wlf+YF5gwBCRSUs93nFAyEMKJpVSXxc+OWNTg2b 0tCZwP2qzviIgDtBAwAN3mdM+JzliKoes7fLxqo6WpfwQGwr1G2OA2Ti774RbUSH lzGk0UDbGyNs6sYWcDi0UoEGtHQezl08+LLczcCnSmzP7ifTTVezbwGMhXcce9xu G94hUjswR8zDdCyQ/nlr7yEmMLT+urlSz7OHn+KUzA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefvddgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeegfeffkeeltefgkeelgeelffffudejjeevvdejtdel keduudefleelveffueehjeenucffohhmrghinhepphhhphdrnhgvthdpvgigthgvrhhnrg hlshdrihhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 45CD11700097; Thu, 9 May 2024 10:27:47 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <98b2b3c7-9fc7-4832-8b70-93c432b334eb@app.fastmail.com> In-Reply-To: References: Date: Thu, 09 May 2024 14:27:26 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Wed, May 8, 2024, at 1:40 PM, Gina P. Banyard wrote: > Hello Internals, > > I would like to formally propose my idea for exit() as a function > brought up to the list on 2024-02-24 [1] with the following RFC: > https://wiki.php.net/rfc/exit-as-function > > There have been some slight tweaks to the implementation, namely that > the transformation from a "constant" to a function is done at compile > time and we do not hook into the behaviour of constants any longer. > > Let me know what you think. > > Best regards, > > Gina P. Banyard > > [1] https://externals.io/message/122483 I support this. My only question (which applies to current exit() as well), is what the exit code is when you pass a string as the parameter. That's not clear from the exit() docs currently, but the RFC made me wonder. (This may be just a doc fix and we move on with life.) --Larry Garfield