Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80563 invoked from network); 2 Oct 2013 07:25:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2013 07:25:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=hello@apfelbox.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hello@apfelbox.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain apfelbox.net from 37.139.17.48 cause and error) X-PHP-List-Original-Sender: hello@apfelbox.net X-Host-Fingerprint: 37.139.17.48 mail.apfelbox.net Received: from [37.139.17.48] ([37.139.17.48:58609] helo=mail.apfelbox.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/94-46515-D6ACB425 for ; Wed, 02 Oct 2013 03:25:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.apfelbox.net (Postfix) with ESMTP id D02EF121E88; Wed, 2 Oct 2013 07:25:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.apfelbox.net Received: from mail.apfelbox.net ([127.0.0.1]) by localhost (mail.apfelbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JjXywWt2tBYA; Wed, 2 Oct 2013 07:25:28 +0000 (UTC) Date: Wed, 2 Oct 2013 09:25:32 +0200 To: Alexey Zakhlestin Cc: Michael Wallner , PHP Internals Message-ID: <74407D015BE040FAA3D23C244D8FE16C@apfelbox.net> In-Reply-To: <79A5CEBE-1E12-4842-9F7E-3A1F4925B6BD@gmail.com> References: <79A5CEBE-1E12-4842-9F7E-3A1F4925B6BD@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="524bca6c_721da317_7a2f" Subject: Re: [PHP-DEV] HTTP supergloblas and request body/query (was: Parsing PUT data) From: hello@apfelbox.net (Jannik Zschiesche) --524bca6c_721da317_7a2f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, wouldn=E2=80=99t =24=5FBODY be better - since it is the request body=3F =24=5F=46ORM is imho not very clear, since you can send data to =24=5FPOS= T without using a form. -- =20 Cheers Jannik Am Mittwoch, 2. Oktober 2013 um 09:17 schrieb Alexey Zakhlestin: > =20 > On 02.10.2013, at 10:59, Michael Wallner wrote: > =20 > > Since ever people are confused by =5FGET and =5FPOST superglobals, > > because, despite their name, they do not (really) depend on the > > request method. Therefor I propose to phase out =24=5FGET and name it= > > =24=5FQUERY and I propose to phase out =24=5FPOST and name it =24=5F=46= ORM (I'm not > > 100% confident with the latter yet, though). > > =20 > > =46urther, I propose to remove the POST method restriction for handli= ng > > request bodies and solely rely on the content type to trigger the > > parser(s). (*) > > =20 > > There are already parsers for application/x-www-form-urlencoded and > > multipart/form-data in the core. One could think of providing an API > > to add content type handlers from extensions, ext/json may be an > > example, like it is hacked into pecl=5Fhttp-v2. > > =20 > > Thoughts, objections, insults=3F > > =20 > > (*) We'd probably have to revisit all *post* INI variables, though. > =20 > So, that is not one, but three proposals: > =20 > 1. =5FGET -> =5FQUERY, =5FPOST -> =5F=46ORM > =20 > I don't think this is really necessary. Names are there historically an= d changing them will break a lot of stuff. > +0 on aliasing, and soft-deprecation (via documentation) though > =20 > 2. ignore request-method, trigger body-processing solely on Content-typ= e > =20 > +1. makes sense > =20 > 3. expose body-parsers via php-level API > =20 > +1. Hell, yes=21 Something like +1000, actually ;) > =20 > =20 > =20 > -- =20 > Alexey Zakhlestin > CTO at Grids.by/you > https://github.com/indeyets > PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc > =20 > =20 --524bca6c_721da317_7a2f--