Re: New globals for PUT and DELETE
| From: | Andrea Faulds | Date: | Tue, 14 Oct 2014 14:50:36 +0000 |
| Subject: | Re: New globals for PUT and DELETE | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78017@lists.php.net to get a copy of this message | ||
> On 14 Oct 2014, at 15:25, Mike Dugan <mike@mjdugan.com> wrote:
>
> That’s my understanding. There’s also some discussion about deriving data from
> $_POST/$_FORM that is intended for use with other HTTP verbs, I’m still trying to ascertain
> exactly what was in mind there (Andrea I think you suggested that?)
So, we currently parse multipart and url-encoded request bodies for POST and put them in $_POST.
I'm just thinking there's no good reason not to do so for any other request method.
However, to avoid confusion, we alias it to $_FORM so it's clear it's not only for POST.
--
Andrea Faulds
http://ajf.me/