Re: New globals for PUT and DELETE

From: Date: Tue, 14 Oct 2014 14:25:02 +0000
Subject: Re: New globals for PUT and DELETE
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-78015@lists.php.net to get a copy of this message
On October 14, 2014 at 10:21:34 AM, Ben Ramsey (ben@benramsey.com) wrote: On Oct 14, 2014, at 9:08 AM, Mike Dugan <mike@mjdugan.com> wrote: > On October 14, 2014 at 10:04:00 AM, Andrea Faulds (ajf@ajf.me) wrote: >> >> >> So $_QUERY and $_FORM, then. That sounds about right. >> > > Did I just name a global variable? W00t! > > Anyhow, yeah neither one is technically 100% correct, but like Andrea said, the majority of > usage will be from forms and query strings with parameters. At any rate, it’s makes more sense > semantically in the context of what the var actually contains than $_GET and $_POST ever will. > +1 I’m cool with $_QUERY and $_FORM. They make much more sense and don’t try to use HTTP verbs, which can confuse the content and semantics of the data they contain. Plus, they would just alias $_GET and $_POST, respectively, right? -Ben 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?) --  Mike Dugan mike@mjdugan.com

« previous php.internals (#78015) next »