Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78044 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54876 invoked from network); 14 Oct 2014 18:08:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 18:08:46 -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.46 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.46 mail-wg0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:58058] helo=mail-wg0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/EE-18603-CA66D345 for ; Tue, 14 Oct 2014 14:08:44 -0400 Received: by mail-wg0-f46.google.com with SMTP id l18so11518830wgh.17 for ; Tue, 14 Oct 2014 11:08:40 -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=LArMFdcEmAIfSrcAAGCvMoaYwUwpcElHjdsP+LCrXXM=; b=wZo4MFB+cbBRWOEgsEEfTvkmAUCfNGMQzujyt/nTLsG8jzvElrObE5o7jbmXeFrs6E j7yypx0jCOaic7v1YDOQp5POTzBt4cdPAr1dn1LejjjmqTZ7zcKXXxXhWGl8ULuTrW6l w/5hLpXRe7UC3rZsdJMHbH8aKFcklEaHtkXBI/XmOR9k5SLx607FMxVzVLhr0krUzNMX nSPHiCVceD+MC7tG+lZUU8Pk2HaGBGZu2OLYnkFKUM8iFFnU9dulIQlvSpVBDmNdGBVl Z8WeuG1tClNjOOMzqLu2bS0Q/iBqR+pLRC4wXQn1PL8BwZsFuRkNsb3we3Ll8jen/DCP mAug== X-Received: by 10.194.185.115 with SMTP id fb19mr4054443wjc.121.1413310120553; Tue, 14 Oct 2014 11:08:40 -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 hu3sm21024971wjb.17.2014.10.14.11.08.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 11:08:39 -0700 (PDT) Message-ID: <543D66A5.7050105@gmail.com> Date: Tue, 14 Oct 2014 19:08:37 +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> In-Reply-To: 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 14:57, Kris Craig wrote: > It's not supposed to functionally differ. It's supposed to create some > better consistency and make it easier for devs to differentiate between > different REST methods when retrieving data. If REQUEST_METHOD is PUT, > then I can set the parsed params to the value of $_PUT. The aliases match > the methods used, making the code that much more readable and scalable. For that to be consistent, you would need to unset $_GET on POST requests, which would be ... unhelpful. GET and POST are simply the *wrong names*. Naming more things based on them is just engraining a mistake. -- Rowan Collins [IMSoP]