Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69711 invoked from network); 14 Oct 2014 13:46:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 13:46:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:49252] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/39-26074-4492D345 for ; Tue, 14 Oct 2014 09:46:45 -0400 Received: by mail-oi0-f42.google.com with SMTP id a141so16710400oig.1 for ; Tue, 14 Oct 2014 06:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JBKAlgL2bp+XoZgCq4FHMQfS1Mq28qoRfHWwPsrUXVI=; b=FRhiLoizpSjvTIAjDoOUBexU6MZLiU/fogiJRml1Jo8TDh2Kf3vxjM3S/PkYtaEodC 8MuDvhK54UukRKhbT+xuQPN3nLsrxOYJmtvAR4iWJlLC0wsiav4QLtqsbX9Cgegmqj28 o2G+mCebpQmZcIterT80k/g6STkHl3zxb/JWN1PwFY0iSVi0MK3MOk2g6ambTfLBwRZd fVea4YbfyMmUGsl4K3qrjZYwQgj+oVMaw5Geb+Kv9Um2xGlx0OZP+Ls5hMzclJjZTUpl xGT+jHprXdBf/zk4PAeYmvmf9iTGHHDudY/pqeICLHfsHXMQLrr9fxlb8Qf+RO+qkk9C uUnQ== MIME-Version: 1.0 X-Received: by 10.202.133.1 with SMTP id h1mr4386261oid.49.1413294402018; Tue, 14 Oct 2014 06:46:42 -0700 (PDT) Received: by 10.202.169.201 with HTTP; Tue, 14 Oct 2014 06:46:41 -0700 (PDT) In-Reply-To: References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> Date: Tue, 14 Oct 2014 06:46:41 -0700 Message-ID: To: Mike Dugan Cc: Andrea Faulds , Kristopher , PHP internals list , Andrey Andreev Content-Type: multipart/alternative; boundary=001a113ef586cba3a70505623ef0 Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: kris.craig@gmail.com (Kris Craig) --001a113ef586cba3a70505623ef0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2014 at 6:41 AM, Mike Dugan wrote: > > On October 14, 2014 at 9:31:15 AM, Andrea Faulds (ajf@ajf.me) wrote: > > > On 14 Oct 2014, at 14:27, Kristopher wrote: > > > $_HTTP_REQUEST_BODY and $_HTTP_QUERY_STRING for nostalgia's sake. > > Ew, non-superglobals. > > But $_REQUEST_BODY and $_QUERY_STRING are a bit lengthy. Perhaps $_QUERY > (for $_GET) and $_BODY (for $_POST)? Then the variable set finally makes > sense, but isn=E2=80=99t too long: > > * $_QUERY - query string parameters > * $_BODY - request body parameters > * $_REQUEST - query string and request body parameters > > Makes more sense than $_GET and $_POST. > > Any objections? > > -- > Andrea Faulds > http://ajf.me/ > > > +1 for this. This would hopefully also eliminate the confusion for new > developers (or not-so-new developers) who don=E2=80=99t quite understand = that $_GET > and $_POST don=E2=80=99t strictly relate to their HTTP verbs of the same = name. > > -- > > Mike Dugan > > mike@mjdugan.com > That could work, though the BC breakage will be extreme. I'm not sure if that's worth it even in a major version increment. On the other hand, making $_PUT and $_DELETE available wouldn't break anything and wouldn't require re-training for devs. --Kris --001a113ef586cba3a70505623ef0--