Re: HTTP supergloblas and request body/query (was: Parsing PUT data)
| From: | Johannes Schlüter | Date: | Wed, 02 Oct 2013 14:02:54 +0000 |
| Subject: | Re: HTTP supergloblas and request body/query (was: Parsing PUT data) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69451@lists.php.net to get a copy of this message | ||
On Wed, 2013-10-02 at 14:50 +0100, Andrea Faulds wrote:
> > Le 2 octobre 2013 à 13:27, Michael Wallner <mike@php.net> a écrit :
> >
> >
> > On 2 October 2013 13:12, Leigh <leight@gmail.com> wrote:
> > > On 2 October 2013 07:59, Michael Wallner <mike@php.net> wrote:
> > >
> > > You certainly won't be able to remove $_GET / $_POST (implied by
> > > "phase out") in any 5.x release, it's just too big of a BC break.
> >
> > Right, that's why I said "phase out". Check out register_long_arrays;
> > those globals have been deprecated in PHP-5.0 and removed in PHP-5.4.
> >
> Huh, $_GET and the other superglobals were added in 4.1 to replace the
> $HTTP_GET_VARS etc., and then the old way was deprecated in PHP-5.0 and removed
> in PHP-5.4.
> Well, perhaps $_QUERY and $_FORM can be added in 5.6, deprecated in 6.0 and
> removed in 6.4, then? Who knows!
Also comparing to get rid of $_* with $HTTP_*_VARS is misleading as the
HTTP_*_VARS were of limited use. register_globals was primarily used.
johannes