Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20315 invoked from network); 30 Oct 2014 21:15:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2014 21:15:49 -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 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:36262] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/60-17925-48AA2545 for ; Thu, 30 Oct 2014 16:15:48 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 176238C0081; Thu, 30 Oct 2014 17:15:45 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TSB3dECaK-_A; Thu, 30 Oct 2014 17:15:44 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 0D1038C007D; Thu, 30 Oct 2014 17:15:43 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Thu, 30 Oct 2014 21:15:41 +0000 Cc: Florian Margaine , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <95592BAA-862D-4C9A-BA05-9EDAE4EC34EB@ajf.me> References: <36B5E957-01C0-40F2-B4CE-5B02D11ACA14@ajf.me> To: Sherif Ramadan X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: ajf@ajf.me (Andrea Faulds) > On 30 Oct 2014, at 20:49, Sherif Ramadan = wrote: >=20 > No, the interface makes it possible to implement your own behavior, = but it does not prevent PHP from implementing default behavior. In that = PHP would implement its own HttpRequest class, for example, which the = user can then extend to override default behavior or modify it as they = see fit for their particular use case. This is much like the Session = interface, which makes it possible to change session storage mechanisms = in userland, but still have a confirming method of session handling in = PHP. You know, before I keep up this discussion, it=E2=80=99d be nice if you = clarified what, exactly, you are proposing. The RFC contains no detail = at all. I really haven=E2=80=99t the faintest. Also, removing $_GET and $_POST is a *massive* backwards-compatibility = break. I would vote against this proposal and I hope everyone else will = join me in doing so, for that reason alone. Please, don=E2=80=99t completely break every single PHP site I=E2=80=99ve = ever written. :( > So the fix to something like PUT/DELETE requests is to add yet another = super global. No, not really. $_PUT and $_DELETE don=E2=80=99t really make sense, why = are you sending form data to PUT or DELETE? Populating $_POST also makes = sense, it=E2=80=99s not a POST request. The answer is just to add a = function to do multipart parsing, to expose PHP=E2=80=99s current = parser, which satisfies the obscure use case of needing form data = parsing for PUT and DELETE. I don=E2=80=99t think this would be too hard = to do. -- Andrea Faulds http://ajf.me/