Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129093 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 lists.php.net (Postfix) with ESMTPS id ED0201A00BC for ; Wed, 5 Nov 2025 20:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762374674; bh=J9rbuGlmaSYfLgoFPC6fJaoUPvuBhjRS8CoI/P7RTSU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=j/hxjNu9ml3PrmU5Kf4B9L1eLi2Zp1yC15HYbMTXTL/LUGGB0sB40MH0AF30MRFpn 929XpHeJpgmVhNppu3ASqFqmkvXCRj5tEZUDdQNjTvLPpt0mdpM7V/4XDbXwqEGA8V NuGCI2P+w4RX2Wa/ZC9k/4XHUu5qIiY0OpiqMUoP3HR3K8h1jM//6ro9lDu1FeQ1N/ PJGOTbyue9tylEGuFUXxItFYtg4TXyMHb7don/HL4FghYSixn8K9dR2nUtRxMC3d1F kNE0iDdJamAJABtMFSCPtuj5A1da81F9XrCHmR0VdXh5V5ustW7SJAqz6Ipl6deP50 3uGOi6M9jZcAg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1854B1801E1 for ; Wed, 5 Nov 2025 20:31:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,PDS_PRO_TLD,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from sienna.cherry.relay.mailchannels.net (sienna.cherry.relay.mailchannels.net [23.83.223.165]) (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, 5 Nov 2025 20:31:09 +0000 (UTC) X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C24A6782AE0; Wed, 05 Nov 2025 20:31:02 +0000 (UTC) Received: from server52.areait.lv (100-123-83-250.trex-nlb.outbound.svc.cluster.local [100.123.83.250]) (Authenticated sender: yszpovajlk) by relay.mailchannels.net (Postfix) with ESMTPA id 4B4B7782B28; Wed, 05 Nov 2025 20:31:01 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1762374662; a=rsa-sha256; cv=none; b=4EYBFPC+KF8zoH6d92TPukTUuJElESQe4ggiOXt+DuVY6QsIZUbtYEE8pNVWkOzJ2aOPIe HUHU2fU/Ik0ELKwmv9G2chUJaLQ92scj3IyPZu1SOrflErC9vKHLHiI5Y1tOKSPR+lWgZb eHUUKuIhnpq94wR7TmiO+rW9ane8vX2OeZC8TcN5RKmpzN0eZpBn57QC6yJeHyzDgkBmPz cYIqaLRoCgikKvISlYXUTDDdGjsfygJZcJKHcsI5C/4iCFsf818TGz6HgfIhQXay249yXo Qiems46pNsWT9BaLiPEoyQqkZP6VhJ6x9iGVS084Pfsqq/UWbvI4MlpJ2ibpAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1762374662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=8hGXorrMpv5mQg8Hn28oDiPlRcyu6WhfnrHTAHL/gAA=; b=c66rRcUjUyv3C9WmBEUL3Cw3v+RX7v8kVKadR7L/QZIrTqFYaqUa+XYm5oCzr7CcceleO0 tufl6oPWX/mc104grDnEj+idZvPB6efPjdocYoxRM5C+9TuXBD0H5ldHGLHQ4vyKH8JXFu aW6ZMI6FcSpKa5cbTKITd2mvpqI5WuJNUGd7horsk5NJh1yE4tMFPgMgM7LPBiEHJ+sVV6 NZ3Eh0sr9UTKW8Rb058nwNb/61vi3EqYgReCcQ0LLzguWOkHZcBuLpPRvspCDhRhxyVnE2 Uef6zwzK+xV5+04164Bc5tFmxKTRjTBlfxCYgxc1WlglsZ9ALIWNok5ivr5Vdw== ARC-Authentication-Results: i=1; rspamd-768b565cdb-fpx4w; auth=pass smtp.auth=yszpovajlk smtp.mailfrom=juris@glaive.pro X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro X-MC-Relay: Neutral X-MailChannels-SenderId: yszpovajlk|x-authuser|juris@glaive.pro X-MailChannels-Auth-Id: yszpovajlk X-Exultant-Print: 052c4b752e7140c3_1762374662252_3248950022 X-MC-Loop-Signature: 1762374662252:1967643364 X-MC-Ingress-Time: 1762374662251 Received: from server52.areait.lv (server52.areait.lv [83.149.95.205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.83.250 (trex/7.1.3); Wed, 05 Nov 2025 20:31:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=glaive.pro; s=default; h=Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To: From:Date:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8hGXorrMpv5mQg8Hn28oDiPlRcyu6WhfnrHTAHL/gAA=; b=ePWhL/938iclVNOAmVAuw/UJXB 0JB17lUF10/T8EVxuf7fzfHOrdDxw7adsaB/PQ9b+vAWxl7vv1bVgTipQl6Fdt4pwc5ySOt3gR+8p EXUrZI7mnuIxIiKd6SgIk/GnljgJfeu8TQ2QES+L5fM2rzYggXkbm/vNUeQN+LY0kvqrXSneElZPp Kth5blqwTKwZa1F3TpYWSd3DN/55dcwaSi8m8QmkjFn/mehBgpg7KO3XaVyqKToRXEeYSmQSbOECq aCe+0CmOF0mqOBEWcl8CZfL424fedzG/NnKinB8RQITWb1gkMseznYEHaD5rSe43XD7ehfQrEwx7r KdPftg0g==; Received: from [::1] (port=33036 helo=glaive.pro) by server52.areait.lv with esmtpa (Exim 4.98.2) (envelope-from ) id 1vGk9k-00000003k3Q-1eZA; Wed, 05 Nov 2025 22:30:59 +0200 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 05 Nov 2025 22:30:59 +0200 To: Deleu Cc: Larry Garfield , php internals Subject: Re: [PHP-DEV] [RFC] Context Managers In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.8 Message-ID: <908d637975283eef3caa41c5e28009ba@glaive.pro> X-Sender: juris@glaive.pro Organization: SIA "Glaive.pro" Content-Type: multipart/alternative; boundary="=_2fbc4e90c14fd3cf1b1a532a1dee903c" X-AuthUser: juris@glaive.pro From: juris@glaive.pro (Juris Evertovskis) --=_2fbc4e90c14fd3cf1b1a532a1dee903c Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2025-11-05 09:38, Deleu wrote: > Out of curiosity, what happens if GOTO is used inside a context block > to jump away from it? I don't think this is crazy enough. I'm curious what is supposed to happen if you goto into one! Btw is the naming clash with global functions real? I've seen some `with()` helpers here or there but you can't use a function in a `with($something) {}` and you can't use the new control structure as a callable, so where's the ambiguity requiring to make the keywordd reserved? BR, Juris --=_2fbc4e90c14fd3cf1b1a532a1dee903c Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

On 2025-11-05 09:38, Deleu wrote:

 
Out of curiosity, what happens if GOTO is used inside a c= ontext block to jump away from it?

I don't think this is crazy enough. I'm curious what is supposed to happ= en if you goto into one!

Btw is the naming clash with global functions real? I've seen some `with= ()` helpers here or there but you can't use a function in a `with($somethin= g) {}` and you can't use the new control structure as a callable, so where'= s the ambiguity requiring to make the keywordd reserved?

BR,
Juris

--=_2fbc4e90c14fd3cf1b1a532a1dee903c--