Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57970 invoked from network); 14 Oct 2014 18:16:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 18:16:11 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:37045] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/9F-18603-A686D345 for ; Tue, 14 Oct 2014 14:16:11 -0400 Received: by mail-wg0-f41.google.com with SMTP id b13so11745199wgh.24 for ; Tue, 14 Oct 2014 11:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=uSLjDCZVPUsUC64K2o/krvEz91I1oZeR43BWCHVFYwY=; b=m83GeRPt6zPSMCzFLApzaHKqlmbVDXvSNUr99IEMjV4VJNQ3jubEpBEJzC1a3D/ZEm FkKjuzt99EMKyGNoV7GS928OVuO57Azm48JfzQUeChaxTQL/CT7ViWaku2nJF760oUfQ T0S/t1nsuvFDpyot8ZoE9FfY4HffHhclLX0N9jsK+VQWxn7Qj9Cxjp+Zavo2pLwBDPgI jqkw75GX/VDGh76qWmGHlnnoMll8iR/i79HNWjTuGSrOyqngDmPTpMbJRFhMFlr6RhVE ApMEgu81F6737WZbzs/LAi6BZXi2fT3LKw2PomLOIYIG0IkOcVZx2Pyx9tpg8xpva1mw nPJg== X-Received: by 10.180.12.195 with SMTP id a3mr7089892wic.73.1413310567621; Tue, 14 Oct 2014 11:16:07 -0700 (PDT) Received: from [192.168.0.2] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id l5sm16580251wif.3.2014.10.14.11.16.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 11:16:06 -0700 (PDT) Message-ID: <543D6864.10508@gmail.com> Date: Tue, 14 Oct 2014 19:16:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> <543D47C1.9050009@lerdorf.com> <543D4CE1.5000109@lerdorf.com> In-Reply-To: <543D4CE1.5000109@lerdorf.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: rowan.collins@gmail.com (Rowan Collins) On 14/10/2014 17:18, Rasmus Lerdorf wrote: > I think 20+ years of history has proven this to be a non-issue. Of all > the things that people get confused by in PHP, $_GET/$_POST are right > near the bottom of the list. The popularity of REST is what has changed this. Until people started writing RESTful APIs, only two HTTP request types were in common use. Nobody was confused about where PUT method data would end up, because nobody processed any PUT methods. > It makes no sense to me to make $_BODY an alias for $_POST. $_POST > implies the default body encoding that a broswer performs on a POST > request. Making an alias called $_BODY that doesn't contain the body of > a request unless it is "POST"-encoded would be super confusing. The encoding has no relationship with the request type, even in browsers - the default encoding of a POST form is actually the same encoding used to produce a URL form a GET form. And in case it's not clear, the suggestion is that $_POST should be populated on PUT and DELETE methods as well. -- Rowan Collins [IMSoP]