Re: [RFC] Stream Error Handling Improvements

From: Date: Wed, 19 Nov 2025 16:33:12 +0000
Subject: Re: [RFC] Stream Error Handling Improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129310@lists.php.net to get a copy of this message
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


Thread (18 messages)

« previous php.internals (#129310) next »