Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128353 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 95AA51A00BC for ; Thu, 31 Jul 2025 17:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753982656; bh=mTNxLbILMQV4mpY2jF2r+eyYjLTF9021SX0pm7nzOyQ=; h=Date:From:To:In-Reply-To:References:Subject:From; b=irW04MHArej9UuceRiWUP3GuDDlo1bk1RBpx8YzusNEzB8GFmFGFjzNWEMcwBmZD8 gG0TzJHy2a03dyOT2x/BXr/ZpYmKYmHo3CTU7Q3U8DlM9nJwnCSN7QKfAZQFP8S0Rf Q09qImTct0fTWRwJEBi2WAfJn/YMvD4Mq03BOhgyw0N1EjZVz18hgcE/62td2Eok1b IApCHHTk/WLt3l3QifiWOIGGsdnWbXeXmkmxc2I+CoQTLaTc0pwPlLAaom3ygbIFq4 rMcighwwIiracRgSLc4rT6uTtoj+QKU2XcNOmPum4jFWpIipka/ayg6eYAPfY/KDh6 7c+OTpI4uToRg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7230B180082 for ; Thu, 31 Jul 2025 17:24:15 +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.4 required=5.0 tests=BAYES_05,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.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153]) (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, 31 Jul 2025 17:24:15 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8227C7A23B3 for ; Thu, 31 Jul 2025 13:25:56 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Thu, 31 Jul 2025 13:25:56 -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=fm1; t=1753982756; x=1754069156; bh=mTNxLbILMQ V4mpY2jF2r+eyYjLTF9021SX0pm7nzOyQ=; b=BC4Cidde74nxjuI4IqeMUxCE1P oKwewg95KMOojhXGB5tSHl6FG4gr4rR1U7k+v5iLpqBIkmnzDJKVTs1/S42IAiYB O1Qx1sP9P7e60vjVD6/3fwBktkl8kgD2heLAFocL8Uft8rcPsGLig/chSo0fvDAZ a96x5imHLubOLSj9j9QxTelbI6kEkCyBvhypyyfrc6A8iuBto24kVExcNnpcFG3g xBxo2O8OBlf6348Stpa+4nDXjCpM8pDa+0J/I1SVt1aB9RZIzwNf15wqVvUOOMBG bT5Koti/P3+1kr7ObII3HtbkvQiGEukfB1fPadqfNG/xWYCIqYUdg42OZdNA== 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-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1753982756; x=1754069156; bh=mTNxLbILMQV4mpY2jF2r+eyYjLTF9021SX0 pm7nzOyQ=; b=JbfXo9OuO+eQLIwd5+2f+7hOKeuf/Z9A15WocSvdELcO36kiegV K3Q2l9qKryoHmJvfROQDk10lcMp3huUSMMX+vSSU7/9p17bQkqjFUYoyOa8XlrRI e1Oy38eONLWRhcCpIKpPZZqqBbt472WjLA1a01q0tOQcC6u2EsfeBdC5ikV0z1Ml YJld1cFF2iQDtFtZoPD/S6x5KcHFt98wJVhBNMRjMTA7cPcmQK3JL5bYDGTP+92z iyodEmSW0iayf8Eo1Rplsb8Fya6sMP2vxud76UL7h3+n8uiNiCtta4pJwltqQNjN 1BorRVonYgVYKMRy/GB2DULnOHqqt8hAwFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddutddugeduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefoggffhffvkfgjfhfutgesrgdtreerre dtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggu rdgtohguvghsqeenucggtffrrghtthgvrhhnpedtueejtdethfeulefhtdelieduteelff dtudelheffgedtieehhfelieejgfevgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprh gtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgr lhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E12FD182007A; Thu, 31 Jul 2025 13:25:55 -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 X-ThreadId: AzoCpASj9aCJ Date: Thu, 31 Jul 2025 19:25:35 +0200 To: internals@lists.php.net Message-ID: <6ec1efab-e99a-481a-9942-3fee13eae13d@app.fastmail.com> In-Reply-To: <04930a31-a62d-4195-93d2-e6c671e53a41@rwec.co.uk> References: <5A451842-1B55-4ADC-A747-C897FB3CE323@cschneid.com> <68de724e-61f2-4ee1-bd5d-fbb35935041c@app.fastmail.com> <04930a31-a62d-4195-93d2-e6c671e53a41@rwec.co.uk> Subject: Re: [PHP-DEV] [RFC] Optional Catch Block Body Content-Type: multipart/alternative; boundary=8103f2f8e6a04115a1f4d44ffe5c056a From: rob@bottled.codes ("Rob Landers") --8103f2f8e6a04115a1f4d44ffe5c056a Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 31, 2025, at 17:33, Rowan Tommins [IMSoP] wrote: > On 31/07/2025 15:17, Rob Landers wrote: > > They're not used for flow control, or state. They merely force PHP t= o=20 > > unwind the stack to a known place >=20 >=20 > I don't understand the distinction here; you want to continue code at = a=20 > particular point (control flow), and unwind the stack (state managemen= t). Unconditionally, yes. This is more like a bailout of user code, not thro= wing the exception would enter an infinite loop or cause an error. So, i= t=E2=80=99s kind of a gray area between flow control and exceptional.=20 >=20 > That doesn't mean your use case isn't valid, but it's like saying "it'= s=20 > not a knife, it's merely a sharpened metallic implement used to cut th= ings". >=20 > --=20 > Rowan Tommins > [IMSoP] >=20 lol. Fair enough.=20 =E2=80=94 Rob --8103f2f8e6a04115a1f4d44ffe5c056a Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Thu, Jul 31, 2025, at 17:33, Rowan Tommins [IMSoP] = wrote:
On 31/07= /2025 15:17, Rob Landers wrote:
> They're not used for flow= control, or state. They merely force PHP to 
> unwind= the stack to a known place


I do= n't understand the distinction here; you want to continue code at a = ;
particular point (control flow), and unwind the stack (state= management).

Unconditionally, yes= . This is more like a bailout of user code, not throwing the exception w= ould enter an infinite loop or cause an error. So, it=E2=80=99s kind of = a gray area between flow control and exceptional. 


T= hat doesn't mean your use case isn't valid, but it's like saying "it's&n= bsp;
not a knife, it's merely a sharpened metallic implement u= sed to cut things".

-- 
Rowan To= mmins
[IMSoP]


=
lol. Fair enough. 

=E2=80=94 Rob
--8103f2f8e6a04115a1f4d44ffe5c056a--