Hi Marco

Please note that you have accidentally created a new thread. I'm
responding from the main thread.

> >>> On Fri, Oct 6, 2023 at 2:44 PM Ilija Tovilo <tovilo.il...@gmail.com> 
> >>> wrote:
> >>> https://wiki.php.net/rfc/rfc1867-non-post
>
> Just wanted to mention that maybe this is a great opportunity to create a 
> request_ family and start with request_parse_post_data

Something like request_parse_body() could work. That should satisfy
both your and Michałs request. This naming extends nicely to other
formats if added later on.

This reminded me that it should be specified what happens when the
format is not supported (i.e. anything but multipart or urlencoded
formats). The automatically invoked behavior does nothing and leaves
the input stream unconsumed so that the PHP script can process it. For
the explicitly invoked version we should throw an exception to inform
the user that nothing happened.

Ilija

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to