Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125420 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 644361A00BD for ; Wed, 4 Sep 2024 19:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1725477975; bh=9r8N9EweFifxCZqqcPxb+aV67D43j8OpmFAt/s254/8=; h=Date:From:To:In-Reply-To:References:Subject:From; b=YjlTdoGGiUWmTd/ua8wqUQEaAMbg0/LICCzv9d6ccPrFp1YK5dbJOeLvT5puNLw/N qLgGpY9CiaUu835KOoDNwGfto4g1LxP9UY4Ivn0d+NSgf6qD/J3iD6jQJX728STstc Rd9o5UNvHYSwNubkzxVnNpICY0PS6WDAAEF6zjL471wNcqlsCf3uU9elTkQhnYMMyy EhO1b6np3o5E01dB6ZP8H/tDPuB4vRYN+p3/aAp8c7Syc/NNiWl57h1V+NCoBTeA4H 2jtbFo8r2IBUCcP/ejifUbfOtN/GapOr+pWIAgjyk7umZ3qUQTMyNjrG56TEjblbp8 XXqJx3Rk8yiZQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 708E6180055 for ; Wed, 4 Sep 2024 19:26:15 +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.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 ; Wed, 4 Sep 2024 19:26:15 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id DB3BB11402F5 for ; Wed, 4 Sep 2024 15:24:16 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-03.internal (MEProxy); Wed, 04 Sep 2024 15:24:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; 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=fm2; t=1725477856; x=1725564256; bh=9r8N9EweFi fxCZqqcPxb+aV67D43j8OpmFAt/s254/8=; b=bOqQrdaIKLtinLF+YkwTXDTnFE 0fWkknk19sUUmsZvapfOFNA73JfloVlNSoAaPL7rICTK8g+WoZucHmNLoVmH+jNE z8xmFJvUz7sPp45lk6zzVykPPQWMW7DVPJK7HpoWxuq1250e7oGgFg6v32yOy+c4 UJ436veDGvFBxkHVnowZMSYSyadE96SsTu0ufjP3Uosxe1w+wUECyO9leqyEJwr4 7pKT3D6K5CdPJ3+S4STE3t255vIJ9zCQK/SYzv8yLrms5OC3GlXKIdT8HHcKE/Z1 MDPLCXRjFAtHUdP1n0J1a+ZeMPbbF3I5oQyEGAGosi8rmNQ4qSRdGaCj5bUg== 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= fm1; t=1725477856; x=1725564256; bh=9r8N9EweFifxCZqqcPxb+aV67D43 j8OpmFAt/s254/8=; b=o6bFKLrlP4xJyB7L1vPsYAKVLUFq4Yx+LKaVKIT+typB uK1EWMHfZRCq0BNfD14jlKvfAbWx1fyWcCxQIiFavi9dDyYt1kpFCNTMF9X+Ck1r +7AbnJh3L5zOVQsXOEQzihEN9XVUohKrnA/OuoIoGroj+x6goLX6vKfDENbi27GI D+J4zZE3iVaY/revpgphHlzpZYgje+jx5Vse0pFlcOpfX2ZMw/RNk5RbxU5sDmNO qshupNNywrwY2Axc5TfDx9oW7t/xgjhoZc8W5BQGh7BXe5fS/0H7V8fu7p6g0Zpj LVsUOmm561GFzK47MUcU4mein2BmloAPklRxp2wjtg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehjedgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggff fhvffkjghfufgtsegrtderreertdejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdf uceorhhosgessghothhtlhgvugdrtghouggvsheqnecuggftrfgrthhtvghrnheptdeuje dttefhueelhfdtleeiudetlefftdduleehffegtdeihefhleeijefgveegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlh gvugdrtghouggvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhr tghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 939DA780067; Wed, 4 Sep 2024 15:24:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 04 Sep 2024 21:23:13 +0200 To: internals@lists.php.net Message-ID: <27c3909f-05f4-4256-a447-10e8d8760fff@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] Local constants Content-Type: multipart/alternative; boundary=b0aa68a25c42413799bf51e62b2f3a2c From: rob@bottled.codes ("Rob Landers") --b0aa68a25c42413799bf51e62b2f3a2c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Sep 3, 2024, at 05:20, HwapX wrote: > Hello internals! >=20 > I was wondering, has there been any discussion about supporting local = constants (variables that cannot be reassigned, perhaps even function pa= rameters)? Out of curiosity, what value would this bring to PHP? In my experience, = modern php methods and functions tend to fit on a single screen, at most= being a few hundred lines for complex logic. =E2=80=94 Rob --b0aa68a25c42413799bf51e62b2f3a2c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Tue, Sep 3, = 2024, at 05:20, HwapX wrote:
Hello internals!
<= div dir=3D"auto" style=3D"font-size:12.8px;">
I was wonde= ring, has there been any discussion about supporting local constants (va= riables that cannot be reassigned, perhaps even function parameters)?

=
Out of curiosity, what value would this bring to PHP? In my experie= nce, modern php methods and functions tend to fit on a single screen, at= most being a few hundred lines for complex logic.

=E2=80=94 Rob
--b0aa68a25c42413799bf51e62b2f3a2c--