Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78007 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88816 invoked from network); 14 Oct 2014 14:08:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 14:08:16 -0000 Authentication-Results: pb1.pair.com header.from=mike@mjdugan.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mike@mjdugan.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mjdugan.com from 209.85.192.42 cause and error) X-PHP-List-Original-Sender: mike@mjdugan.com X-Host-Fingerprint: 209.85.192.42 mail-qg0-f42.google.com Received: from [209.85.192.42] ([209.85.192.42:34934] helo=mail-qg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/01-18603-F4E2D345 for ; Tue, 14 Oct 2014 10:08:15 -0400 Received: by mail-qg0-f42.google.com with SMTP id z60so8517880qgd.1 for ; Tue, 14 Oct 2014 07:08:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type; bh=eZpqM7GeE+gjrDYum+d8wtUP9r9+XABr0cmmr9I25dk=; b=JAitoqCq/Oq9RKNIwemBskxAwfguDUR697FyONtSxoKDgtfoS/MXaumb3J9mc4qDUh TbzHbTQ1xhh7PN8V4ZJqbGy3NL7gxVcSt3IAkzMRNlJpEwPzZlAEEhOBuMiBwgWSrP4W pDR0xFMs0IhqwJtg34A00HTBKdAn8OjzkwGcQxaVZ6rDHqh3kbmNVX1gQ2lVwpzyT0Nm B/2YrKGVBEx20xn7YodXCvFSeRfivEUCVDX4QHkoShQQtBkT8CEK9rYJvgE4WXcN37q7 Qw53d4uzipMhCQ7vR7oyZUoKwsNCYgejwj9OA/Pbw2UDarxQqt3KHbVQiJ9IuHlz8nIl oxfw== X-Gm-Message-State: ALoCoQlQOT8PMODUHgys5gqRIJnkQc4T50RbvDKzYxORxNjXL0RDGvzI2wjdVgAdAOvfU/hng5uq X-Received: by 10.229.65.2 with SMTP id g2mr9653749qci.1.1413295692401; Tue, 14 Oct 2014 07:08:12 -0700 (PDT) Received: from Mikes-iMac.local (c-71-200-126-32.hsd1.md.comcast.net. [71.200.126.32]) by mx.google.com with ESMTPSA id v16sm15532088qae.29.2014.10.14.07.08.10 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 14 Oct 2014 07:08:11 -0700 (PDT) Date: Tue, 14 Oct 2014 10:08:09 -0400 To: Andrea Faulds , Chris Wright Cc: Kris Craig , Ben Ramsey , Andrey Andreev , PHP internals list Message-ID: In-Reply-To: <69EB8F97-7CFC-44E0-8B2D-C2230ADAC87F@ajf.me> References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <4240E494-94E6-4FC9-BB84-C30FFA69129C@benramsey.com> <69EB8F97-7CFC-44E0-8B2D-C2230ADAC87F@ajf.me> X-Mailer: Airmail (249) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="543d2e49_507ed7ab_12d" Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: mike@mjdugan.com (Mike Dugan) --543d2e49_507ed7ab_12d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On October 14, 2014 at 10:04:00 AM, Andrea =46aulds (ajf=40ajf.me) wrote:= On 14 Oct 2014, at 14:53, Chris Wright wrote: =20 > Also, I think Mike got the naming right there as well, =24form is the =20 > accurate description of what it is. =20 You=E2=80=99re right, actually. multipart and url-encoded are usually pro= duced by forms, and other types of request bodies (JSON, plaintext) don=E2= =80=99t end up in =24=5FPOST. =20 So =24=5FQUERY and =24=5F=46ORM, then. That sounds about right. =20 I suppose =24=5FQUERY is *technically* incorrect for similar reasons, in = that if you have a plain parameter-less query string (e.g. http://example= .com/foobar.php=3Fquery%20string) it won=E2=80=99t end up in =24=5FGET=E2= =80=A6 but I don=E2=80=99t think that=E2=80=99s widely used, and there ar= e only two formats that come after the question mark. If you really need = the raw string, it=E2=80=99s in =24=5FSERVER anyway. So that=E2=80=99s no= t really a problem. =20 -- =20 Andrea =46aulds =20 http://ajf.me/ =20 Did I just name a global variable=3F W00t=21 Anyhow, yeah neither one is technically 100% correct, but like Andrea sai= d, the majority of usage will be from forms and query strings with parame= ters. At any rate, it=E2=80=99s makes more sense semantically in the cont= ext of what the var actually contains than =24=5FGET and =24=5FPOST ever = will. =E2=80=94 Mike Dugan mike=40mjdugan.com --543d2e49_507ed7ab_12d--