Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129316 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 82D631A00BC for ; Wed, 19 Nov 2025 22:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763592106; bh=xMa4x+w+GAvnWYG/gAvsFI5s5L5u4/kZRQW7/SuiLiQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e4cdpdl44Eyiexr4ARrSvQcF8rFfk+yD8Zsw/NC7T6ZZCAsYwhmQNVvs3HWMUjQU9 ib1RFF5IEUHrKIjMFTzKJGwV4sHA8ApgJNawdT7cLg04kaZwOxk/zXb1yYLmHmn+EE 0ndU50QcHvlFiD8woLtM7Z0bZ+u+gU64+KLx4FarDQiEA6aq051Q3V0zr8v1VYc4DI d00ydc0FW+V4MMzlRMdAHcI5Fe4p3bFNyyFVOLzSk+FK4X3nv8bydG8vcsE8tb/XFc sTVIqw0V4RBB2ebrwgkVnQHLhqV93nUR2K/+gsikwxToshA07jGK0hrq+a8fJedMyf 4yZJJEseDFjVQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 43389180392 for ; Wed, 19 Nov 2025 22:41:45 +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.8 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (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 22:41:45 +0000 (UTC) Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-45085a4ab72so110013b6e.1 for ; Wed, 19 Nov 2025 14:41:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763592099; x=1764196899; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8xp5tN9uxzmPNvE42P/HGWmyvllLtc/Yzbm8zdtVf6w=; b=KhxROr0N9dBV22/P1mBWHD07Pbzh1DA4ps0KcZYNAyDh73abEyQqTFiL2P0iA2/CxB 7DFm85t2eBC/8zNeP4BMyT6T86PVGjqYsBbAsDKPY2oq9l/y76O39W4tMkSalnwSwcoA sesVYnv8q0swK8mJU2IudRS+Ks/LF5m0cdAwbGFP5Z4r1tTRhPlV+LoTkD8ov5acf1UN v8mln+knEIXfUJ21THfyPskRPan6YRTDLHZCqoXefsBqZwBC83rmT0Hpj6JknDkXD5Or 2JnezYqTB7nbM24dIXqUKYqm6YaKegVL+RcWrc62mPwkqVatcontlbPlfkrL9BkHg9RA y5oQ== X-Gm-Message-State: AOJu0YwpiDb7B1Ah5qpm1g0oi9DprCtF8sgkkYmLTGDkV8HoYnCF72dL ZXDiEEt1kfXTjYXqQiehF5oLxTVJqu1/xj0nHpg3P37N4Bxg8kNUCn0hvFxbhxRxTtvKp7ZQTJ4 GLDQTuCEhtGGYjZiuLzqGzEZkJvqMkJTEEnxX X-Gm-Gg: ASbGncvzzNaNx6lht94IJs7UZ4DixO2I9TgxxpM9JfwJPkmXappa4W42RI+nLrFBv3n tMZSxRBUvYNaRHYGJ5xH95SFCoN0CliecyWGpP2N4kom+ANy6/jtp87QuR6TKTxDnwJKh2kpam2 EknRpFsEC09dZf+7V0H6rifUZIS4Sw4R4nJ6XHPTCKB/YOKt9sW+IEc5UzDOvFL68QGkQULIANh 16GswM5EjSAa/3Ko5EV+VqFER/e3uApNfl/68pdPHOPxaE9XVwj/57zuPmGRILZAd9ylw== X-Google-Smtp-Source: AGHT+IHxOSvJXyNeOwhnXE/bixAkmeRjwTt0x7euOB7g6z8PmXxypnI2dmxUL2FRO48bhbkPwBGAF3DKTYGk/55+iR0= X-Received: by 2002:a05:6808:10ca:b0:450:1179:5f43 with SMTP id 5614622812f47-450ff384bdcmr404336b6e.37.1763592099224; Wed, 19 Nov 2025 14:41:39 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Nov 2025 23:41:27 +0100 X-Gm-Features: AWmQ_bmu6AYfiIOOwJ6CqGQBff8fCRoLboxbRQNJ78fiyeDZzam-tzPW8DZ9qcs Message-ID: Subject: Re: [PHP-DEV] [RFC] Stream Error Handling Improvements To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000009a5fbe0643fa4816" From: bukka@php.net (Jakub Zelenka) --0000000000009a5fbe0643fa4816 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, Nov 19, 2025 at 5:35=E2=80=AFPM Larry Garfield wrote: > 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 t= he > 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? > > This RFC is part of the bigger effort to address various stream issues and provide other stream related improvements that I selected based on my TODO list. You can see more detailed description of the whole scope in this foundation blog: https://thephp.foundation/blog/2025/10/30/php-streams-evolution/ . The overhaul of the whole API is out of scope as there are lots of unknowns and would require longer migration. It is thus harder to deliver in the selected time frame. It doesn't mean that it won't happen. It's just out of scope for this block of work and I don't have specific plans for it. Kind regards, Jakub --0000000000009a5fbe0643fa4816 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Wed, Nov 19, 2025 at 5:35= =E2=80=AFPM Larry Garfield <la= rry@garfieldtech.com> wrote:
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 Sovereig= n
> Tech Fund) :
>
> https://wiki.php.net/rfc/stream_errors
>
> Kind regards,
>
> Jakub

HI Jakub.

I agree with what others have said so far.=C2=A0 I'm going to ask a lit= tle 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.=C2=A0 Howev= er, 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 st= art?=C2=A0 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?

This RFC is part of the bigger effor= t to address various stream issues and provide other stream related improve= ments that I selected based on my TODO list. You can see more detailed desc= ription of the whole scope in this foundation blog:=C2=A0https://thephp.f= oundation/blog/2025/10/30/php-streams-evolution/ .

=
The overhaul of the whole API is out of scope as there are lots of unk= nowns and would require longer migration. It is thus harder to deliver in t= he selected time frame. It doesn't mean that it won't happen. It= 9;s just out of scope for this block of work and I don't have specific = plans for it.

Kind regards,

Jakub
--0000000000009a5fbe0643fa4816--