Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78493 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21958 invoked from network); 30 Oct 2014 21:26:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2014 21:26:57 -0000 Authentication-Results: pb1.pair.com header.from=willfitch@fastmail.fm; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=willfitch@fastmail.fm; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain fastmail.fm designates 66.111.4.27 as permitted sender) X-PHP-List-Original-Sender: willfitch@fastmail.fm X-Host-Fingerprint: 66.111.4.27 out3-smtp.messagingengine.com Received: from [66.111.4.27] ([66.111.4.27:57931] helo=out3-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/C0-17925-02DA2545 for ; Thu, 30 Oct 2014 16:26:56 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7FC0820DFF for ; Thu, 30 Oct 2014 17:26:53 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 30 Oct 2014 17:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:content-type:mime-version:subject:from:in-reply-to :date:cc:content-transfer-encoding:message-id:references:to; s= mesmtp; bh=2Gz89JQzSI4ru/PvkSm3PfDeEhI=; b=b20rv61tG76k4rXsa/D4Q 7SMh1e4mvi/LdXrXox7wJ5luwfl1Zse1ReuRjkBFGdlKPaZlWWSZPXJGPTHQL4W9 x8lgiD+mvZDwXnsWXgfXkjBfstPKSGcKAfwoQqgfLyrYhT6z1rhIhiREmTW/g8Gw FKjSWFtOIEQbnFiTyJ9+s4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:content-type:mime-version :subject:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; s=smtpout; bh=2Gz89JQzSI4ru/PvkSm3PfD eEhI=; b=OgYBKccmEPorOpzzzyfzuKon4ok1VkcHauDEUz1VK3l2oKzS5E+Uxas 1kXsE1rxJOYLo+JY7qXgsjlhno9issFZpQ8LTaGAMJCjy4kW62b+Mq0h9RrQiXNC o/EQ12s9qFepi2T/Lcub0vvveb72rrrJzrdQg11Qbm3cXJ8k8x5I= X-Sasl-enc: CTvqiyvDouN5d4gG/fPazlNGI6plk5FzOA6gS2AEU6o2 1414704413 Received: from [10.90.225.42] (unknown [166.172.56.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 190D7C00015; Thu, 30 Oct 2014 17:26:53 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B411) In-Reply-To: <95592BAA-862D-4C9A-BA05-9EDAE4EC34EB@ajf.me> Date: Thu, 30 Oct 2014 16:26:52 -0500 Cc: Sherif Ramadan , Florian Margaine , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <36B5E957-01C0-40F2-B4CE-5B02D11ACA14@ajf.me> <95592BAA-862D-4C9A-BA05-9EDAE4EC34EB@ajf.me> To: Andrea Faulds Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: willfitch@fastmail.fm (Will Fitch) > On Oct 30, 2014, at 4:15 PM, Andrea Faulds wrote: >=20 >=20 >> On 30 Oct 2014, at 20:49, Sherif Ramadan wrote:= >>=20 >> No, the interface makes it possible to implement your own behavior, but i= t does not prevent PHP from implementing default behavior. In that PHP would= implement its own HttpRequest class, for example, which the user can then e= xtend to override default behavior or modify it as they see fit for their pa= rticular use case. This is much like the Session interface, which makes it p= ossible to change session storage mechanisms in userland, but still have a c= onfirming method of session handling in PHP. >=20 > You know, before I keep up this discussion, it=E2=80=99d be nice if you cl= arified what, exactly, you are proposing. The RFC contains no detail at all.= I really haven=E2=80=99t the faintest. >=20 > Also, removing $_GET and $_POST is a *massive* backwards-compatibility bre= ak. I would vote against this proposal and I hope everyone else will join me= in doing so, for that reason alone. >=20 > Please, don=E2=80=99t completely break every single PHP site I=E2=80=99ve e= ver written. :( >=20 >> So the fix to something like PUT/DELETE requests is to add yet another su= per global. >=20 > No, not really. $_PUT and $_DELETE don=E2=80=99t really make sense, why ar= e 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 d= o 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. It's not hard. Again, pecl/http v2 proposal will give core everything it nee= ds. I honestly don't know why this is being discussed any further when their= s a solution that gives functionality requested here and contains zero BC br= eaks.=20 > -- > Andrea Faulds > http://ajf.me/ >=20 >=20 >=20 >=20 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20