Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62264 invoked from network); 2 Oct 2013 18:43:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2013 18:43:51 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:43896] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/BE-23255-7696C425 for ; Wed, 02 Oct 2013 14:43:51 -0400 Received: by mail-ie0-f178.google.com with SMTP id to1so2767565ieb.23 for ; Wed, 02 Oct 2013 11:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=fFKjWZk26bIkKx2vZoIKA1BUmSTyGJDiuHxkzudU+ek=; b=mxybFgAqT06DNP/2JZ2zK3gCoqJR8heQ59e+M5MR0EeELVzX1XwiMMi5HR0Us92y6a 2emkB8SfryU15+NDAsulCDnHNWkvRljLfiNZ9ZrIYPnSA/BHFSw0zZEh3Tr8/0vvjbCV CKp76+SkJZRNjsW0jPXAoZmPmCUV+Gck+yoG8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=fFKjWZk26bIkKx2vZoIKA1BUmSTyGJDiuHxkzudU+ek=; b=Lsse4QvIZ4n0pii4OWSixaO/qDanU1m8WChy/cLHhfljaO6mgx7pkq3k9ucWiYhvk4 CisFQQrWdpTvqosADjPonHi+fNWn1iExIqJVonesYt9kd9iDmkKYEMRMR2wK7qXW3vzd tfxhANLV3zS1FQfeVFhq3CV1l0MDs6o6eSOauQ3aEZKcCVZoBOtwJ4m+SULBGz8oPcMW KF5DC5Py4WsG2jkkHeOSaHo+yTQUADnRDmvyPeZtyLxr2wSZa1NYsNXfbwM1/fyWfIkn 5KF/iKj81yArLQVNVNw6VcdLdO2OOPIsr/BPrhKeUi7CxqAsPGRM4VyCKUaLTBZx1Qwn y37w== X-Gm-Message-State: ALoCoQkQxAP1hhagJn8mWdEGknI01zKJ/khHRHCvd8ayWza9bjQ86SABrkXyXxepMynxms9UkL6p X-Received: by 10.50.225.3 with SMTP id rg3mr3347477igc.28.1380739428157; Wed, 02 Oct 2013 11:43:48 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.206.208 with HTTP; Wed, 2 Oct 2013 11:43:21 -0700 (PDT) In-Reply-To: <79A5CEBE-1E12-4842-9F7E-3A1F4925B6BD@gmail.com> References: <79A5CEBE-1E12-4842-9F7E-3A1F4925B6BD@gmail.com> Date: Wed, 2 Oct 2013 11:43:21 -0700 X-Google-Sender-Auth: OUEy2do30tdnei7aOtRfoluJusU Message-ID: To: Alexey Zakhlestin Cc: Michael Wallner , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] HTTP supergloblas and request body/query (was: Parsing PUT data) From: aharvey@php.net (Adam Harvey) > On 02.10.2013, at 10:59, Michael Wallner wrote: > >> Since ever people are confused by _GET and _POST superglobals, >> because, despite their name, they do not (really) depend on the >> request method. Therefor I propose to phase out $_GET and name it >> $_QUERY and I propose to phase out $_POST and name it $_FORM (I'm not >> 100% confident with the latter yet, though). I'm not really sure people are confused, actually. There are plenty of common gotchas that I see daily in ##php, but that isn't one of them. I like how Alexey broke this down, so I'm going to steal it. :) On 2 October 2013 00:17, Alexey Zakhlestin wrote: > 1. _GET -> _QUERY, _POST -> _FORM As I hinted at above, I'm -1 on this at first blush. I don't think it's really that confusing in practice and $_GET and $_POST have a lot of history (and muscle memory) behind them at this point. > 2. ignore request-method, trigger body-processing solely on Content-type Definite +1 here. > 3. expose body-parsers via php-level API +1, particularly if it's also available in userland as Alexey got excited about. :) Adam