Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123281 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 7B81E1A009C for ; Thu, 9 May 2024 12:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715256877; bh=6FTZTc3cCfaDsvKKpqGKynHS6Qibr6jduNvvus+ebyE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YcK661ZTf/fJKrxVZz/qvb0Ux7JM4YL0z1Ae4ZEU+w/NWQceT5GSmJ0ms7NzWxm90 f4el2PZeM/D1xPIC/wVcclzxt+DCdRVWMKRuMdLmD4JhSnkHNvoFbrcGHkZje9nham XOgGTAFkeTk2TDepSj0vqDImQDElCHqsQEaalEgs0DjPMNC3VE1q8tpc3kA2VAMAzL WxHGoLqQyc5sjzh4qKHQ04sAobuVj53OTZaPY6NWR8n/NgCZGqBCLB017Myth+cLUj R80Xyq8pT8W9TR94r+bySWXUYMlSWCwsNlRXS5AOifo1Wf4DFBO55lzVmWFuN9T/qA rbWD1Das7VBUA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1D74C180055 for ; Thu, 9 May 2024 12:14:36 +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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (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 12:14:32 +0000 (UTC) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6f065bc237aso430572a34.0 for ; Thu, 09 May 2024 05:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715256823; x=1715861623; 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=qGdE6Csh4nFQ8MnGt8AOSes9tAvXrUDuxdRje0hMxG4=; b=SnUTQzy1/xszmIt6cQ0L5sFua0goTUytSKVGfIVuC3EUT6ulC0N5tqTDvmJtEDYFt2 +8mUB3VfxuuvuLNSF1Z/dMeMBBBi3SeL7fK11qeBTOfkhGvWet1fv8PE/bEfvFapYyIy l8iENo94I2Avu/DByDkY6TkQV8ZENS0dUmnULKEbN3n4MnbGgJgw0yK0Mm87d1WgbQAG w0zLK+orejHKb5iFDBb5YDXaN/oZc5Wq2o6u3b9Y84jMLFelTnC0obqShlOqYSV3nfje puww/KwVVxP4S0tRauaH+u9gh/5EyzymlaKuU+U/lMwZCQ3/2tYMlUogSwk4utXFev27 4idw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715256823; x=1715861623; 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=qGdE6Csh4nFQ8MnGt8AOSes9tAvXrUDuxdRje0hMxG4=; b=PBVykncO1LPoVSddtswJ0itFdcUgCYEobsleGVDUXvV7viWSndjnPDqAXbBpWVwa8d uuALxq59UIv20qr2iJsydJwKmodLGIFtD4lOnZkLERCOd2in9g+oh8T4wi/SzDdGbuFk 0BF4Z+gFWTYF0Av4Rr14iGy6IAODNWJeezVMVRBqsJcAySndVoQ3Er/c6ka5XmRA3jxG NRkQT8rNtEwWeI4lJOn3RxeXqBB2BT2GW3IbFPQXylEhu0wdwY09ior42M9s0DWXFiQE OLLVUU0ImOkvT9ELJwqEPXXUwtKqaWodh3o9PniMjXSfiV59EkJMMjpgWrmHsXvWcXu5 o0+Q== X-Gm-Message-State: AOJu0Yw/xVKEiV6WRTxDiIdJBinFrJ8KGFlj8n4SrQ1yJA2wRiAN6685 pRm2DEQXh2dgAa0DvJSCNT9RgWVgIgSuHRZv8Tzwt9njqVG8kaTuCEdSxHTeEasidkON0v4dEox GgFEqARrqZIQ+xHq/xB1Z8MKnuaa4JQ== X-Google-Smtp-Source: AGHT+IEj8bIJVEvSBGsDPyRtnOolDtGD7xo6HEd/wP3VR5+LLsuc2fvUznshGFSCCeZaLgAjbrgk6GlAE6ceQmYN0Z8= X-Received: by 2002:a05:6830:1248:b0:6f0:e02e:bc2c with SMTP id 46e09a7af769-6f0e02ebc7bmr1742927a34.17.1715256823020; Thu, 09 May 2024 05:13:43 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 May 2024 09:13:32 -0300 Message-ID: Subject: Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function To: Niels Dossche Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000a2840d0618045950" From: flaviohbatista@gmail.com (=?UTF-8?Q?Fl=C3=A1vio_Heleno?=) --000000000000a2840d0618045950 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 9, 2024 at 7:51=E2=80=AFAM Niels Dossche wrote: > 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 > 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 tim= e > 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 > > Hi Gina > > Thanks for proposing this, I'm in favor of this change because this > creates more consistency. > > Kind regards > Niels > Hi all, Is there a list of other "functions" that are handled as "constants"? --=20 Atenciosamente, Fl=C3=A1vio Heleno --000000000000a2840d0618045950 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, May 9, 2024 at 7:51=E2=80=AFAM Niels Dossche <<= a href=3D"mailto:dossche.niels@gmail.com">dossche.niels@gmail.com> w= rote:
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 brou= ght 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 com= pile 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

Hi Gina

Thanks for proposing this, I'm in favor of this change because this cre= ates more consistency.

Kind regards
Niels

Hi all,

Is = there a list of other "functions" that are handled as "const= ants"?

-- <= br>
Atenciosamente,

=C2=A0 =C2=A0 Fl=C3= =A1vio Heleno
--000000000000a2840d0618045950--