Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129310 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 792891A00BC for ; Wed, 19 Nov 2025 16:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763570020; bh=uw9SPSyAjnwbp0ufqpCXWIufyNBNAWr3oA9DD+qPMSI=; h=Date:From:To:In-Reply-To:References:Subject:From; b=ZoWw3oodeA1K6RX1YLrqjBz5qLHW6LmTYoOrGad7vyy4keGWItLKv4dbJMahphKvK vZOLilm0fPgDYzLPER3dydA+/83M5YNQzzz/Ctd510m8V/4kLPQ/s22tvsoBVIweon 42IEdtrK3SotpDjjno4t29A3szQuKESwLuubqpoJJDv6n06L+5Fr3niLqpArZ+d+3w AsFsGdnK4CZmK8jefVhO0/b4mdjN61hhSvIOGNNCeTdZCeVvJPW5VVEiMY+Zgx93P0 QFxMfNLWLAIApwDDAmL4WoeWY45Jij9g9wyDBAobFU3xTG4XfPYeuVw5jjHYywlEKO lsZ0q4VDzL/Tw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E09721804CE for ; Wed, 19 Nov 2025 16:33:38 +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, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No 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 ; Wed, 19 Nov 2025 16:33:38 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1AFAA7A00AB for ; Wed, 19 Nov 2025 11:33:33 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Wed, 19 Nov 2025 11:33:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; 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=fm3; t=1763570012; x=1763656412; bh=UfqZe3+Jh8Tg6BFzf35Jb scxfK2oHh7rI54PHcovf6I=; b=D379BF+/dNY0vX1n9RDpnLyt0AuFrDLNuBtCY pkqQCEg7CwRUlx/VxdZPqHb7wUv5nQ1iCBt3yzFx9dCWFrwQbPfLIYWqoyCIkeuW aYizvJkXp5uuXj/hs8bRTaM5lXzSeJOVCEILCy1C6UEqpuk+1RkZdcYSjYUg8vtA s1r8csFqPeWSdZWUiq8/VianbfG33m29CjrekFjU6fIu0DStFljAKft4kIckZltb 43xhcpJ8ob3k6Hw8LwTiLFxvQZ0O94Es1b2GjTVWudlu4PKiCf72XuLTCayhBL6V aD3baFokXNzrQnKtL0/K9Dqs9CC4V3ZWKC7mW740q3AxGZyrA== 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=fm3; t=1763570012; x=1763656412; bh=U fqZe3+Jh8Tg6BFzf35JbscxfK2oHh7rI54PHcovf6I=; b=So9UFYSYB5mzL4QtN JXXXp//+C3DngecNCU+r0ZJ0YHSTh2Ke3RN16N2J+6SRjVMvbx0+MbTt9bIzq+01 3k1HrFipCFiSjrOolJpk59v99CgWMHnUU6DUryi5zq/JA6pDrVlKhjfCXPtj++8x YS8uxTYaxNlFM0uPffR2fQ0aualuPFZtgwUgnV2CyFizWkr8SL22BmbK0TsU1SqJ tuvkpRUaQOtpeqsbfWAjzmfYuvMKQvORZDmFf7wlLSn6XVvT57FQ0pJwn0paN+W0 iKSMaqAQiL0AYqbv/rROBJA5WvGRjTXHrhD+cBHUeYXtFpc1qfAM1fG0gbUba5h6 mvxRg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdegieelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeeuvedvudfhffffhfelueehvdejvefgleegteegffetudef leehgeefvdehgeelteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghl ughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 8CD64700054; Wed, 19 Nov 2025 11:33:32 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AmUDiu6jOwf7 Date: Wed, 19 Nov 2025 10:33:12 -0600 To: "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Stream Error Handling Improvements Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Tue, Nov 18, 2025, at 12:38 PM, Jakub Zelenka wrote: > Hello, > > I would like to introduce a new stream error handling RFC that is part > of my stream evolution work (PHP Foundation project funded by Sovereign > Tech Fund) : > > https://wiki.php.net/rfc/stream_errors > > Kind regards, > > Jakub HI Jakub. I agree with what others have said so far. I'm going to ask a little bit further, though. AIUI, there's two main issues with the stream API: 1. It's very inconsistent. 2. It's very clunky, non-obvious, and hard to use if you don't know exactly what you're doing. This RFC seems to be addressing the first point, which is fine. However, should we be trying to smooth out the current unpleasant API, or should the effort be put toward a more intuitive API that is smoother from the start? This RFC could be a stepping stone toward that, I'm not sure, but if so that's not clear to me. Are there any longer term plans here for a more complete stream overhaul? --Larry Garfield