Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124792 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 C44841A00B7 for ; Tue, 6 Aug 2024 07:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722930305; bh=PL5sDYnKWKvE6uozoVhYqQD7q2glPXa/+046a/UDOfE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Z3HxjFuKOqso+GrscVnp9pTDjjHxjm3nXjC5MgPJYfwprWfLztt5XTH/MTZ31vwhv TpLr/jIjMvPVzxQBzOFgPXpg9pEwlKeUjLrtON2eGOYFgUhk6ql5WYioBsLYNZ90c3 n3vc6oWuw/MsjlRkYIvcy836TVDttCJJzb7eI7lwxCfaulZEYfqxt4Nq+Hii/foGFv bpXHBuO6ex44O0iBAm6QAks1l8TJUKmDnrN1c10f9FxTlVNjga5R5U53iOfVSSRo75 xaWgwjNCdzYEE+Qaodvq8LamzlmbUd8Dc9tKeOGTfw6XBPgnt2NEtGDduUNcekPXX9 GS16/UGRNssbg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0F1FB18006F for ; Tue, 6 Aug 2024 07:45:05 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 ; Tue, 6 Aug 2024 07:45:04 +0000 (UTC) Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-4f6b8b7d85bso171004e0c.1 for ; Tue, 06 Aug 2024 00:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20230601.gappssmtp.com; s=20230601; t=1722930202; x=1723535002; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BlaJJvBC4298EkLlFFWHD4uHNYn68UqXBqUqRIWeqJ4=; b=rSX5N68nMtrvmeRusSxTp7n+WEDQDOb5ALsPar26b+UVkx//AxLVS/OuqjU6KMu2nN uUAPlHwY7ZHrKVmGBQT3LlQKtdFckKEJ487MsjOvRK1TKAqMwCAP7XCdk488HyyBHtGK y4yjnebqIv8NZMSe3vYaKXt4/LvB7c+duaPTMq6/+kxECxWO0NHLeo5e+ZYNcsTpekNv vb54cWbqy6NW3XmtZXFZmglXKIIloyGVc8Y6V8uWn5ShAYB0q4MmY+rrabUhJgUQZYNj URNF7+W/qBL14MopppEHr3LrxC1YnEcNd9fe/CPFgnTpc8Zno4EAKnm64aZ/o7XM9CXJ XcPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722930202; x=1723535002; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BlaJJvBC4298EkLlFFWHD4uHNYn68UqXBqUqRIWeqJ4=; b=AA5vrrAlBb0NRxfsaMscmPiGPk7jA/CI9Ohyxvqk6vSmt177n+up2qLcIaHx0zRbpv m2pF3kx40Kbfp3lK8UjU1fRHsmmY4cc5PSRFQH6IR/aAb1akLNAlBlmuq7YuRmMNV3Uh Fp01Z/CfmAIZzRkBxmV2adH2w44yYLYrKkTEZ831iIi2YYhKADiKt90Wwun/ZEsI1A/v Suuegz3Luzevo502Pa/cnwv9NMGNJWXBiNa/cNBPzmA9aXVgkocEskJvnNWROfC3/np2 JfuhL6R07LxNkFPXRl7v+4AerN+x+A0O3fInKG87RCBtyTZWMvn9epCXFeGhOr9cA6zD 5VBw== X-Gm-Message-State: AOJu0YwLJ/B71vlAxk0UbkFprCFJ3vPyBpOPRpBJqizGLr9UH/bOgKgq 5Uj+se5d/kv7h08g/A21RnkLHjXrVW4i6tTJDJtLaP70Jbov/1frfLI2oCHkonHcMREDurCeenF 7qkCh1i1z9kI3sAgIpn7ZvdbvP8SxkLNIbIwboNXDRVgnBSnv X-Google-Smtp-Source: AGHT+IGRJLGIuTDZsPJSY2EgTm8hawGkbwcdDGEHWLLAxziuyQTu9I19q6KgZxGUTaJ+Ja7gLnYJdhzEaahVYPtLqFU= X-Received: by 2002:a05:6102:390b:b0:492:94eb:5769 with SMTP id ada2fe7eead31-4945be1b696mr16801298137.15.1722930202223; Tue, 06 Aug 2024 00:43:22 -0700 (PDT) Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Tue, 6 Aug 2024 03:43:21 -0400 Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Tue, 6 Aug 2024 09:43:16 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 (Mimestream 1.3.7) References: In-Reply-To: Date: Tue, 6 Aug 2024 03:43:21 -0400 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a language construct into a standard function To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ad43d8061efef2a3" From: kontakt@beberlei.de (=?UTF-8?Q?Benjamin_Au=C3=9Fenhofer?=) --000000000000ad43d8061efef2a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am 30.07.2024, 11:49:52 schrieb Gina P. Banyard : > Hello Internals, > > I have just opened the vote for the "Transform exit() from a language > construct into a standard function" RFC: > https://wiki.php.net/rfc/exit-as-function > > The vote will last for two weeks until the 13th of August 2024. > > Best regards, > > Gina P. Banyard > Hi Gina, I was ambivalent to this before, but after reading the discussion, voted no for two reasons: - exit without parenthesis s still not a function, that does not makes handling this on extension level (tools, profilers) more reliable, inste= ad more confusing. I don=E2=80=99t mind the work this might cause for an ex= tension, so i don=E2=80=99t join Christoph=E2=80=99s and Derick=E2=80=99s argument h= ere that this a break for extensions that disqualifies the change. - If it still does not allow me to set exit as disabled_functions, then this creates an inconsistency I also have a question: From a userland perspective, it looks it creates inconsistency calling exit with global namespace prefix, depending on parenthesis or? \exit(); will now work, but \exit; will not? Also if https://github.com/php/php-src/pull/4084 taught me anything, trying to add eval support for disabled_functions, then maybe we should throw warnings instead when using that ini setting to disable op codes, instead of silently ignoring that this won=E2=80=99t work. --000000000000ad43d8061efef2a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Am 30.07.2024, 11:49:52 schrieb G= ina P. Banyard <internals@gpb.moe>:
=20
Hello Internals,

I have just opened the vote for the "Trans= form exit() from a language construct into a standard function" RFC:https://wiki.php.ne= t/rfc/exit-as-function

The vote will last for two weeks until th= e 13th of August 2024.

Best regards,

Gina P. Banyard

Hi = Gina,

I was ambivalent to this before, but after reading = the discussion, voted no for two reasons:

  • exit without parenthesis s still not a function, = that does not makes handling this on extension level (tools, profilers) mor= e reliable, instead more confusing. I don=E2=80=99t mind the work this migh= t cause for an extension, so i don=E2=80=99t join Christoph=E2=80=99s and D= erick=E2=80=99s argument here that this a break for extensions that disqual= ifies the change.
  • If it still does not allow me to set exit as disa= bled_functions, then this creates an inconsistency

=
I also have a question: From a userland perspective, it lo= oks it creates inconsistency calling exit with global namespace prefix, dep= ending on parenthesis or? \exit(); will now work, but \exit; will not?

Also if=C2=A0https://github.com/php/php-src/pull/408= 4=C2=A0taught me anything, trying to add eval support for disabled_func= tions, then maybe we should throw warnings instead when using that ini sett= ing to disable op codes, instead of silently ignoring that this won=E2=80= =99t work.
--000000000000ad43d8061efef2a3--