Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60616 invoked from network); 14 Oct 2014 13:30:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 13:30:34 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.51 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:52095] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/27-26074-9752D345 for ; Tue, 14 Oct 2014 09:30:33 -0400 Received: by mail-qg0-f51.google.com with SMTP id z107so8131826qgd.38 for ; Tue, 14 Oct 2014 06:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=mxeVA22ckawBJcDsUURoD7g1f3EwCiAOi7fXahLtkus=; b=0uLqkzrQNGfDqDfWEuF4tiyP05QhqgN5SY2PrmSqubZ+TEPoyxWszMZl+gwVTXOsh6 X248+j1rsUEwPxsJk8El72d+b1pBx5QeigoSi2MtZ06q+gxJZud4kkn1q8FyvXS/yXee GrryZBK+g6uksyYjE/m0M8iGChYzEuuHLpvL4kekHalgLiQ4S7DZRUYwo9Sf103dUKkJ yLPgo9nBDl/VlzpzbqWtAXe5X7ngXfZTvc1LRwTWMsEGh9Zs/GNVvHWZLYt8mB6XHUcs ZFaAmS2sqLJSEci3Dfx/mAu9CB3CQei09KFEvgIknqzVs+cCyaMiDT2lKLGp3lJOx6Ib N5pQ== MIME-Version: 1.0 X-Received: by 10.224.22.17 with SMTP id l17mr9500746qab.56.1413293431216; Tue, 14 Oct 2014 06:30:31 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.141.28.193 with HTTP; Tue, 14 Oct 2014 06:30:31 -0700 (PDT) In-Reply-To: References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> Date: Tue, 14 Oct 2014 14:30:31 +0100 X-Google-Sender-Auth: 6a4UUhrujbv_Mc5fFJ9JqIfC2M8 Message-ID: To: Andrea Faulds Cc: Andrey Andreev , Kris Craig , PHP internals list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: cw@daverandom.com (Chris Wright) On 14 October 2014 14:25, Andrea Faulds wrote: > > On 14 Oct 2014, at 14:23, Andrey Andreev wrote: > >> That being said, from a purely semantic prospective, both $_GET and >> $_POST should be tossed - yes. In reality, you can't do that because >> virtually all PHP applications use them. But this is no reason to add >> even more global vars with such misleading ... meanings. > > Let=E2=80=99s add $_REQUEST_BODY and $_QUERY_STRING and make them aliases= of $_GET and $_POST then. Because they=E2=80=99re aliases (by-reference su= perglobals), there=E2=80=99s no additional memory consumption, but we final= ly have saner names. $_BODY and $_QUERY would be better, IMHO. The brevity would be consistent both historically and with other existing superglobal names, and at least with $_QUERY_STRING the data is not a string. I suggested this a while ago, people didn't like the idea, and I'm not sure I do any more, either. We'd do much better focusing on creating a standard native request *object* which provides clean access to this data, and other things that are clumsy at the moment, such as request headers.