Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130591 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 0068A1A00BC for ; Wed, 8 Apr 2026 17:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1775667824; bh=+NiCyFi62CyPiHnsPIqEACep4u9/YS0H16jX8jLA6nM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=hvZMzGggsua5+w3vi+p0/n2nYqdH/KNqW9Vd+iymkYKjZKoaS9bV85kU2ncezpdBQ wF05Aq7mRnJ+9PXA4SVVDva2EeJU5AeMtDs0nM8J82SPNfKBPcizclwCQmVpZaTJCh /OEzQZVQKTFQDbcvjH1otvcLflwsA4/mfz9fI/5R5Z5RJo9pKZ/1GVx08EX81d35xg gmVLWPTP+KMyNXHMNYUItfIIJaCV6eM8W3k7AbuSObPwv7tl8hx3fu6SVHDcxXTlgW VnvqG2NBvWjT4XEVwHYAhEuy9ZHwLhFlpmhjxa8kY3XPwkjWuLw+gwXW2jZddV2kz5 FEOi38ckkgELg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A6D4F180032 for ; Wed, 8 Apr 2026 17:03:43 +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=-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_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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, 8 Apr 2026 17:03:43 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 9E761EC0442 for ; Wed, 8 Apr 2026 13:03:37 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 08 Apr 2026 13:03:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding: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=1775667817; x=1775754217; bh=+NiCyFi62CyPiHnsPIqEACep4u9/YS0H16jX8jLA6nM=; b= LKaAQvhPJ6GG2F/mEYg2aG+xH2E0urg2aMunnX8tMNHq5JFjszaITXxTv4kGgcHK PN/A5aZ96hlclEGd2Hl4MPlM3BWZQ7Mm28RL+hiUkkbp3sVfgkV7rXLUMtKSIcTP CeqB/pBdnXRNKrT26Jl2i0Pk3KsUembEQyD/LPrc1BBO6m0x8qqf0MhC7hotxLi0 SgJ0+EWCBhpLPFPexPUWxFrK3/po5dwtuOWNe1vxkP7tTEv6LQ2D9ouHSnX7Jq2v sYDI0788e5ZyWx8rS7ZAG5Vopv/l0+YVFJKcTMNFxDyvuuYoehJU3Qcyz7m4p+pW 3VCQlIr1KWjE55mOpI0V9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775667817; x=1775754217; bh=+ NiCyFi62CyPiHnsPIqEACep4u9/YS0H16jX8jLA6nM=; b=Uc8HgvWjs8YYmFoZZ rbSX4mh2BHx1/pKyesRH2HQ3xXW9K4tKIWWH9MXINJL7Li/8OoI2mpT6T9yQJ9E6 B/dpJgA+O1llXWiC9Z7sjrPABR3o9IbKXAQ+FWfe+q5LfX2NrHSGHeSU+sVka+SW oBJKtEo/CuEy8P1cszmm37W1c2F11BDd9KCh0d2oXCP9C2api0I0xlmtixAgWIh3 e4ND9drLAzTzxDUByQ6z3mA2CVgX6C+EdncslLX9aCyKSK/Paipl1qhj0Mwv51LM gTEnq0fJC+hLROTPXZfJZlcP/d82GjxmGHN0YdQKgMP5rTpd2SnhK/SYC42+IL/U oFWmg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvgeduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcu vfhomhhmihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtoh druhhkqeenucggtffrrghtthgvrhhnpeelvdeuhedtheduudelfefhgfejhfffvdeljeef gfeuiefgiefgvdehhfefuedvvdenucffohhmrghinhepphhhphdrnhgvthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprdhphhhp sehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 8 Apr 2026 13:03:36 -0400 (EDT) Date: Wed, 08 Apr 2026 18:02:32 +0100 To: php internals Subject: Re: [PHP-DEV] [RFC] Context Managers User-Agent: K-9 Mail for Android In-Reply-To: <4de9a1d5-f412-4f99-ae95-6d66cef1501b@app.fastmail.com> References: <5d96fca3ca5418e6e9e5d8871b26477f@bastelstu.be> <8bf1b0a7-7771-4f81-b92c-49bb019f7f9d@app.fastmail.com> <02dbe23bb5a4e53be7bf2db7506e07b6@bastelstu.be> <841b8e97-9052-4868-badc-1dd1dad0e99a@app.fastmail.com> <0c59c7d4-8748-47ca-a626-179661803b51@rwec.co.uk> <4de9a1d5-f412-4f99-ae95-6d66cef1501b@app.fastmail.com> Message-ID: <289134F3-03A6-490D-B615-27AEE9FB9372@rwec.co.uk> Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 8 April 2026 17:07:38 BST, Larry Garfield wro= te: >Switch being considered a looping structure does qualify as a "quirk" in = my book=2E =20 I had a look at really old code on https://museum=2Ephp=2Enet and from wha= t I can make out, PHP/FI 2=2E0 had single-level "break" only as part of the= "switch" syntax; there was no way to terminate loops early=2E PHP 3=2E0 ad= ded a general-purpose "break" and "continue", with both keywords taking an = optional argument - in fact, both were implemented by the same C function= =2E=20 The existing use of "break" for switch statements just became part of this= more general feature=2E I guess you could argue that that means "treating = switch as a looping construct", but I honestly can't think what the alterna= tive would have been, other than using a different keyword=2E If PHP has a "quirk" it is that "break" and "continue" both take a numeric= argument=2E Any new use of either keyword would need to deal with that qui= rk, even if "switch" was removed from the language completely=2E Rowan Tommins [IMSoP]