Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78005 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85801 invoked from network); 14 Oct 2014 14:03:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 14:03:27 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:60315] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/50-18603-E2D2D345 for ; Tue, 14 Oct 2014 10:03:26 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 95E1C8C0089; Tue, 14 Oct 2014 10:03:23 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qMPaF2A5QABK; Tue, 14 Oct 2014 10:03:23 -0400 (EDT) Received: from oa-edu-170-18.wireless.abdn.ac.uk (oa-edu-170-18.wireless.abdn.ac.uk [137.50.170.18]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id DEA778C007B; Tue, 14 Oct 2014 10:03:20 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Tue, 14 Oct 2014 15:03:18 +0100 Cc: Ben Ramsey , Andrey Andreev , Kris Craig , PHP internals list Content-Transfer-Encoding: quoted-printable Message-ID: <69EB8F97-7CFC-44E0-8B2D-C2230ADAC87F@ajf.me> References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <4240E494-94E6-4FC9-BB84-C30FFA69129C@benramsey.com> To: Chris Wright X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: ajf@ajf.me (Andrea Faulds) On 14 Oct 2014, at 14:53, Chris Wright wrote: > Also, I think Mike got the naming right there as well, $form is the > accurate description of what it is. You=92re right, actually. multipart and url-encoded are usually produced = by forms, and other types of request bodies (JSON, plaintext) don=92t = end up in $_POST. So $_QUERY and $_FORM, then. That sounds about right. I suppose $_QUERY is *technically* incorrect for similar reasons, in = that if you have a plain parameter-less query string (e.g. = http://example.com/foobar.php?query%20string) it won=92t end up in = $_GET=85 but I don=92t think that=92s widely used, and there are only = two formats that come after the question mark. If you really need the = raw string, it=92s in $_SERVER anyway. So that=92s not really a problem. -- Andrea Faulds http://ajf.me/