Re: New globals for PUT and DELETE
| From: | Will Fitch | Date: | Mon, 27 Oct 2014 02:06:44 +0000 |
| Subject: | Re: New globals for PUT and DELETE | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78361@lists.php.net to get a copy of this message | ||
> On Oct 26, 2014, at 5:00 PM, Park Framework <park.framework@gmail.com> wrote:
>
> 2014-10-26 23:24 GMT+02:00 Florian Margaine <florian@margaine.com>:
>> I think Rasmus made it clear what the original naming meant: it were form
>> methods, not related at all to HTTP methods.
>
> Yes, this would be logical to have access to the input data, as single
> interface, do not make exceptions for POST, input data send methods
> PUT, DELETE, must be available in a single global variable, the
> variable name is not important
> file_get_contents(‘php://input') - uncomfortably
Or, use pecl/http to handle it. GET/POST are form relative while all others are HTTP related.
That’s been said quite a few times in this thread. You don’t have to use php://input
<php://input>. pecl/http is available.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>