Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126662 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 A06781A00BC for ; Sat, 8 Mar 2025 22:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741471839; bh=XKdu8oUadkGFcz1cXRitGZVKb2bNtVKy0nrApHmzamY=; h=Date:From:To:Subject:In-Reply-To:References:From; b=i9fc9Y2wOphWpbibkWtqOE+S+69f0uNDsuLAjdeVE8TQs8US8k5ojhmrgVk9Tdg+N Tjwv/BCTIeoBHPWT3WaYMoT/qsvF+hn7JGmPQ9NvmOZPzh70EjxM17/MN7aO3QTDcm Qck/xRUTzaV0aL2svFvFS2p15QPQzJJ04v5VWcwVw118npVrwYajzNdgjxMY//iIJS Y9INv27mswvzRmNy3DNHwd6HtLQHH3escNXXqt0E+Sg7fdRtlIdoLjiP8yZu8jaycW OcV7jnbRImxd+SpUqfTRQnufeBWMvxRlc3qofjOurEvthXJbe/tinQ9G+IXCoJF4Tm iJY8yDpwPmefg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8C0BA180212 for ; Sat, 8 Mar 2025 22:10:38 +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=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,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 fout-a3-smtp.messagingengine.com (fout-a3-smtp.messagingengine.com [103.168.172.146]) (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 ; Sat, 8 Mar 2025 22:10:38 +0000 (UTC) Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id B8C7F13826E3 for ; Sat, 8 Mar 2025 17:13:12 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sat, 08 Mar 2025 17:13:12 -0500 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=fm1; t=1741471992; x=1741558392; bh=XKdu8oUadkGFcz1cXRitGZVKb2bNtVKy0nrApHmzamY=; b= LQfe1Yq7s+ayrcj79zT1ev66wlEPZjdvHbJNWfybqdW1StZcErD4NkVqYo3pvcI0 +0qj2cBjSH8fLyxukwEmrYcGhn7LJKMz0ctq6ZfAwB8RFqtQqgxHtTa8LDno/xeZ A4vDwOQPA8aSUstkfQ6G8dwKonIKYPBNWbWCuII2otrzv+iH8Fb7ZyLoPMXyXJGM 3R4qKdkRZ/Alp8PTvJGtDoFEv0IcsjEEIwb0Y9umy93NI/YDjuZQlyT4mEUP0pGk q480o0CAqRyDlgh8GQlmyyz6L81Jq2OhAE6I9JIxA4Mq48J51kJRKEgS7774/CEy 4mphsLN5qm5v71pXB4reKg== 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=fm1; t=1741471992; x=1741558392; bh=X Kdu8oUadkGFcz1cXRitGZVKb2bNtVKy0nrApHmzamY=; b=wfs4nvf1devOMk0c8 woUcXXZhwEe6zbHqVuHsMAW8tTI7n3HjbRiXfe3QVqJsf/HHe5e/PVh6NEf6KvlD W4eeKRTgoHQZhsUHITgtO6qMErRKswhdIunWOIkd7t0HBRLPV5k4vAF/JSOOM2Vx W875Gnj0Ch2sfBevXzMncnLThW3p+wte0MAASZ4VVf/7H3ow0UdR5I8RCpHX+7yO 1eOi7tJeENWl5mXeoSMlyM/JvE+YUoOrB/97uialOcHOsqu/vQRpfLccQxSk9jEe 7C2VBjNJxR4FLCGnGwdBVLHNbx3YtD1FaYqMNqwFspfEDQBiL3bjjpxculGDuHCh sQKXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduudegjedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhf fvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhm ihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqe enucggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeugeelheei hfehgfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslh hishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 8 Mar 2025 17:13:11 -0500 (EST) Date: Sat, 08 Mar 2025 22:13:10 +0000 To: internals@lists.php.net Subject: Re: [PHP-DEV] PHP True Async RFC User-Agent: K-9 Mail for Android In-Reply-To: <676e36e4-0b84-4d8c-b3db-2998831cd79d@gmail.com> References: <78a03dd0-fd4a-4f4a-ad8a-37e5704f06fc@app.fastmail.com> <08c8ad0b-e8f4-46e3-99f0-b80748d40b89@app.fastmail.com> <07973EAE-2D83-47A8-8FA0-84286C77C02B@rwec.co.uk> <48d66433-3ae9-4895-8361-7c81a0a3670d@app.fastmail.com> <8599eb8b-d4a3-4cb8-899a-25b134e0d64d@gmail.com> <74c4c726-63aa-44e0-84c9-840e13a65a4f@gmail.com> <77DC5F50-531D-49E8-8BE2-504A19CB5FFD@rwec.co.uk> <676e36e4-0b84-4d8c-b3db-2998831cd79d@gmail.com> Message-ID: <510B8EF1-9D07-41A8-9EA0-7D99CF7BFC91@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net 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 March 2025 21:42:21 GMT, Daniil Gentili wrote: > >To make an analogy, it's like saying PHP should have an io {} block, that= makes sure all file resources opened within (even internally, 10 stack lev= els deep into 3 libraries, whose instances are all used after the io {} blo= ck) are closed when exiting=2E Traditional PHP offers exactly this: the SAPI lifecycle tracks all file ha= ndles opened within a request, and closes them cleanly before reusing the t= hread or process for another request=2E Essentially what I'm proposing is a= way to implement the same isolation in userland, by marking a checkpoint i= n the code=2E As I've said repeatedly, it doesn't necessarily need to be a mandatory res= triction, it can be a feature to help users write code without having to wo= rry about *accidentally* leaving a background fiber running=2E=20 Rowan Tommins [IMSoP]