Re: [RFC] Stream Error Handling Improvements

From: Date: Wed, 19 Nov 2025 09:42:06 +0000
Subject: Re: [RFC] Stream Error Handling Improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129294@lists.php.net to get a copy of this message
On Tue, Nov 18, 2025 at 7:40 PM Jakub Zelenka <bukka@php.net> 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
>
>
The naming of "terminal" is a little confusing to me. Reading the name with
a bool made me think it was whether or not the CLI was being used, which
made little sense in the context of stream errors. After reading the
explanation "Terminal errors are those that prevent an operation from
completing (e.g., file not found, permission denied). Non-terminal errors
are warnings or notices that don't stop execution (e.g., buffer
truncation).", I feel like it might be more clear if this property was
named after what the result is, perhaps something like "operationBlocked"
or "operationPrevented".


Thread (18 messages)

« previous php.internals (#129294) next »