Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63167 invoked from network); 26 Oct 2014 21:30:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2014 21:30:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=willfitch@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=willfitch@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 66.111.4.25 as permitted sender) X-PHP-List-Original-Sender: willfitch@php.net X-Host-Fingerprint: 66.111.4.25 out1-smtp.messagingengine.com Received: from [66.111.4.25] ([66.111.4.25:37394] helo=out1-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/11-56216-8E76D445 for ; Sun, 26 Oct 2014 16:30:17 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0398120787 for ; Sun, 26 Oct 2014 17:30:14 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 26 Oct 2014 17:30:14 -0400 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:message-id:references:to; s= smtpout; bh=iOCYOwrAA6zIyeH1+AEP2yubF0o=; b=n17qWBUwFwHZWkbQBkAJ Q5TRBoHPrd+qlioIN0WnbKXTr4iJhm5RjgGv/EIjSAaIsIIKJ4ab0L+JTHyPZ68K laDCedr6+6ODmcB/VtdQDYlJGcLqLiLPUgfPfEDNEH96LhYYl4Hk9n+7XV1bN10E f9zVb7qUlSit2dh6m6YEpMY= X-Sasl-enc: I5LEEhuX8msGu366KhmCBdVM4XYAW9IO12LVcLYZLIsa 1414359013 Received: from [192.168.1.137] (unknown [24.183.225.156]) by mail.messagingengine.com (Postfix) with ESMTPA id 4AA04C00011; Sun, 26 Oct 2014 17:30:13 -0400 (EDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_76994B39-C226-48C1-9D5D-D566820D4B11" Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: <544D65F7.8070807@sugarcrm.com> Date: Sun, 26 Oct 2014 16:30:12 -0500 Cc: Dave , Zeev Suraski , Kris Craig , Rasmus Lerdorf , Rowan Collins , PHP internals list Message-ID: <58B69565-F815-4C65-9EA6-94E55857564D@php.net> References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> <543D47C1.9050009@lerdorf.com> <543D4CE1.5000109@lerdorf.com> <543D6864.10508@gmail.com> <543D85E6.2020507@lerdorf.com> <57b7a3681d6c2c7ae123c8921b2d19d6@mail.gmail.com> <544D65F7.8070807@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: willfitch@php.net (Will Fitch) --Apple-Mail=_76994B39-C226-48C1-9D5D-D566820D4B11 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 26, 2014, at 4:21 PM, Stas Malyshev = wrote: >=20 > Hi! >=20 >> The only way to do this in PHP now is write a userland function that = parses >> multipart form data, which is non-trivial. I had written one, but = would >=20 > It is true that PUT data need to be parsed, however it is not true you > have to implement MIME parsing from scratch. There are frameworks that > implement that. Not everything must be written in C. But if you want = C, > doesn't pecl/http already have the required bits? 100% agree. Perhaps focusing on getting pecl/http v2 added as ext or = core should be the real discussion: https://wiki.php.net/rfc/pecl_http = . >=20 >> Having the ability to access the data provided in $_POST for other = methods >> is ideal (by whatever means: $_PUT, $_FORM, get_parsed_form_data(), = etc). >=20 > There are a lot of HTTP verbs - PUT, DELETE, TRACE, PATCH... And what = if > you want to do WebDAV? Wouldn't having separate superglobal for each = be > taking it a bit too far? >=20 > --=20 > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 --Apple-Mail=_76994B39-C226-48C1-9D5D-D566820D4B11--