Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49495 invoked from network); 14 Oct 2014 13:20:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 13:20:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:35133] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/94-26074-D032D345 for ; Tue, 14 Oct 2014 09:20:13 -0400 Received: by mail-wi0-f180.google.com with SMTP id em10so10199468wid.1 for ; Tue, 14 Oct 2014 06:20:10 -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=YeFkJfnL2yHCL87qQO6QTdrkvhN5O2pqnswYQrOJnyA=; b=I/okg/T6+b6NlP82kKTeCUW3WQOB6m6GuUCBaZYz6sEq6qocpaSMKoIXjWFvf4NsDh g8DptgfL7I4qCFxpd/+Tm8GJeMtw/ReJckndwyZRmTdRnqrAW695EG/rQlHlXwyybDTI hw/gfLNTCZUCzPAYaRbVGxrhuDTCDgm4MAZFYeHg6Qfqld+mT1FYkOqMAyucCo2CvAeF vUxfvR/A9UmVeHJq2i62C6MEOWeGycyO6zJ31KfK+jba8eNSfGDyeoUGu3MS/xZ2h9DL kduJttLQsxg2FQx+OmnEnPGABcwNG89DNkWlmH0FewVjBKYpgwL/BiEzaxlCffLzpeFL lSGQ== X-Received: by 10.180.78.100 with SMTP id a4mr5235772wix.23.1413292810189; Tue, 14 Oct 2014 06:20:10 -0700 (PDT) Received: from [192.168.0.177] ([62.189.198.114]) by mx.google.com with ESMTPSA id ge1sm15730355wib.4.2014.10.14.06.20.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 06:20:09 -0700 (PDT) Message-ID: <543D2308.4050403@gmail.com> Date: Tue, 14 Oct 2014 14:20:08 +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> 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) Kris Craig wrote (on 14/10/2014): > The problem with that approach though is that it would not be RESTful. I'm > developing a REST API (with the goal of 100% REST compliance) and having > PUT/DELETE variables mixed in with $_POST would not only be > counter-intuitive, but it would just present a new roadblock. This makes no sense; there is no such thing as "PUT/DELETE variables" in HTTP, any more than there is such things as "POST variables". Just imagine that the variables are called $_QUERY_STRING and $_REQUEST_BODY. They should be completely orthogonal to the request method. Note that this is already true to an extent - you can access the query string through $_GET on a POST request, and $_POST will exist as an empty array.