Hi. I read the requirements to ask for a feature. I have been following your list. Interesting. I just want to do this https://web.dev/fetch-upload-streaming/, https://glitch.com/edit/#!/fetch-request-stream.
This works as expected with a Blob or File: <?php $input = fopen('php://input', 'rb'); $file = fopen('test.txt', 'a'); stream_copy_to_stream($input, $file); $copy = fopen('test.txt', 'rb'); echo stream_get_contents($copy); fclose($input); fclose($file); fclose($copy); ?> fetch('index.php', { headers: { 'Content-Type': 'text/plain' }, allowHTTP1ForStreamingUpload: true, method: 'post', body: new ReadableStream({ start(c) { c.enqueue(new Blob([123])); c.close(); }, }), }) .then((r) => r.text()) .then(console.log) .catch(console.error); At HTML document: POST http://localhost:8000/index.php net::ERR_FAILED TypeError: Failed to fetch PHP built-in server: Invalid request (Unexpected EOF) in PHP. I tried to unsubscribe from your list, got mail error. If you find the time, can you kindly direct me to where this is possible in PHP, or if you find the use case a positive addition to PHP, perhaps work towards implementing it. Kindly unsubscribe me from your mailing list. You folks are involved. Carry on. On Wed, Aug 25, 2021 at 8:19 PM Pierre Joye <pierre....@gmail.com> wrote: > Hi, > > On Thu, Aug 26, 2021, 1:09 AM Derick Rethans <der...@php.net> wrote: > > > On 25 August 2021 18:34:18 BST, Nicolas Grekas < > > nicolas.grekas+...@gmail.com> wrote: > > >Le mer. 25 août 2021 à 19:32, Marco Pivetta <ocram...@gmail.com> a > écrit > > : > > , > > > > > >> On Wed, Aug 25, 2021 at 7:30 PM Nicolas Grekas < > > >> nicolas.grekas+...@gmail.com> wrote: > > >> > > >>> I would welcome a new RFC to clarify what is allowed during the > feature > > >>> freeze. > > >>> > > >> > > >> See https://en.wikipedia.org/wiki/Freeze_(software_engineering) > > >> > > > > > > > > >Can you please let me know how that helps? > > > > Maybe you didn't read the post, but generally a feature freeze in > software > > development is some time were no new features are added so a code base > can > > stabilise. This usually happens just before a release. These periods are > > really important as they allow for 3rd party tools, documentation, etc to > > be ready when a piece of software is released. On top of that, this > period > > can also be used by users to make sure everything is stable, and that > there > > are no critical bugs. > > > > > I suppose everyone knows what a freeze is. > > Also the issue here is not about the PHP features freeze period (RMs do a > good job here to announce and update it well on advance). > > It is about amending RFC for completeness (or whatever other reasons). I > can understand a RFC author does not want it for some random extension > being added. However I do see challenges when it comes to the very PHP core > syntax and languages. > > As we expected many years ago when we introduced the RFC process, I do see > a need to slightly clarify how the core of the PHP language is handled. Not > to block any changez but really to make it clear, what we can accept, veto > possible (it is now), etc. > > For the discussion about whether the null intersection was a feature or a > refinement, I would suggest just to ignore it. too late too little. > > best, > Pierre > > > >