Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69322 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17753 invoked from network); 24 Sep 2013 16:17:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2013 16:17:10 -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 198.187.29.239 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.239 imap1-1.ox.registrar-servers.com Received: from [198.187.29.239] ([198.187.29.239:56378] helo=imap1-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/60-15826-30BB1425 for ; Tue, 24 Sep 2013 12:17:09 -0400 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id C9C4A20008F for ; Tue, 24 Sep 2013 12:17:03 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap1.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id R8rCG6j1k1-K for ; Tue, 24 Sep 2013 12:17:03 -0400 (EDT) Received: from [192.168.0.200] (unknown [94.10.74.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 6649C200077 for ; Tue, 24 Sep 2013 12:17:03 -0400 (EDT) Message-ID: <5241BADE.7050401@ajf.me> Date: Tue, 24 Sep 2013 17:16:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Parsing PUT data From: ajf@ajf.me (Andrea Faulds) On 24/09/2013 17:12, Daniel Lowrey wrote: > An inability on your part to write working code doesn't equate to "PHP > should implement this for me" I am not the tone police, but I don't think such comments are helpful. > Let me be clear: I'm not suggesting we should ignore useful functionality > because of poor design decisions made in the past but I am saying that we > should avoid compounding those mistakes by building on top of them. Would a > $_PUT superglobal be helpful? Sure. But is it a good solution to underlying > problem? Not really. > Indeed. I think what we really need is something like $_REQUEST but for the request body exclusively ($_BODY). We'd then have $_GET for query parameters and $_BODY for request body (POST, PUT, PATCH, etc.) parameters. While at it, why not add a better version of $_GET which doesn't replace certain characters with undescores? -- Andrea Faulds http://ajf.me/