Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17475 invoked from network); 27 Oct 2014 08:08:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2014 08:08:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.174 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.212.174 mail-wi0-f174.google.com Received: from [209.85.212.174] ([209.85.212.174:62763] helo=mail-wi0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/E9-56216-C6DFD445 for ; Mon, 27 Oct 2014 03:08:13 -0500 Received: by mail-wi0-f174.google.com with SMTP id q5so5537308wiv.13 for ; Mon, 27 Oct 2014 01:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Rp1ewJMfGxjhlpEJyIWPFlH+mcK6DiStNuE3q3p55OI=; b=KwZWS+af/BrtpKroH6HQ8r0fllV4NQUD9nAP2OC6bkNNWUxctprxncaPfWNUwLk7cW SZTzuP2ZYrkFoWhxFI7zMAoh+9IlSdWwWknmKPJkpUEmsn2UT5nWyk/ANqwmuJ5IV35H CoIKsu1rzw7rbiurru7zMT50aJCZk+WeErICK1dFpzssk1cBHivveVeMkpozjP58VAet tBZvfmWUmb4At4b0aELoVXo3JLKQacf+CUtcL32A/Y8SsoZC4qmwOA0iic1ufSPqZ/Ur volCIlz3fvwPFNi99fRRYSP0sQA4ubevTChDs/B6DtHuGA8Bf1berbmBSJdJenE+HNkm 1kew== X-Received: by 10.180.24.167 with SMTP id v7mr19435191wif.41.1414397289343; Mon, 27 Oct 2014 01:08:09 -0700 (PDT) Received: from [192.168.1.163] (95-143-224-254.customer.bnet.at. [95.143.224.254]) by mx.google.com with ESMTPSA id t16sm14674452wjr.44.2014.10.27.01.08.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 01:08:08 -0700 (PDT) Sender: Michael Wallner Message-ID: <544DFD66.5060409@php.net> Date: Mon, 27 Oct 2014 09:08:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Stas Malyshev , Dave , Zeev Suraski CC: Kris Craig , Rasmus Lerdorf , Rowan Collins , PHP internals list 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> In-Reply-To: <544D65F7.8070807@sugarcrm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: mike@php.net (Michael Wallner) On 26/10/14 22:21, Stas Malyshev wrote: > Hi! > >> 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 > > 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? Yes, see here: http://devel-m6w6.rhcloud.com/mdref/http/Env http://devel-m6w6.rhcloud.com/mdref/http/Env/Request http://devel-m6w6.rhcloud.com/mdref/http/Message http://devel-m6w6.rhcloud.com/mdref/http/Message/splitMultipartBody http://devel-m6w6.rhcloud.com/mdref/http/Message/Body -- Regards, Mike