Re: [RFC] Stream Error Handling Improvements

From: Date: Tue, 18 Nov 2025 19:33:44 +0000
Subject: Re: [RFC] Stream Error Handling Improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129290@lists.php.net to get a copy of this message
On Tue, Nov 18, 2025 at 7:41 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 > > Hi Jakub, This is a nice RFC. Since I use a lot of PHP streaming capabilities I am looking forward to its voting outcome. Having said that, did you think, instead adding more constants in the global namespace, of using Enum as an alternative for error code. There is a precedent for that in the new URI extension, This would reduce the number of new constants added and perhaps make for a more modern DX for the feature. What do you think? Best regards, Ignace

« previous php.internals (#129290) next »