Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70980 invoked from network); 24 Sep 2013 06:47:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2013 06:47:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rotorised.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lists@rotorised.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rotorised.com from 203.88.126.58 cause and error) X-PHP-List-Original-Sender: lists@rotorised.com X-Host-Fingerprint: 203.88.126.58 mta58-d1.ip2.cbr1.mail-filtering.com.au Received: from [203.88.126.58] ([203.88.126.58:32262] helo=mta58-d1.ip2.cbr1.mail-filtering.com.au) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/A0-02182-A9531425 for ; Tue, 24 Sep 2013 02:47:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsgLADc1QVKva64Tbmdsb2JhbABagz+tMIdLjH+BHxYOKD6CJQEBBThAARALDQsJFg8JAwIBAgFFBg0BBwEBiAC9AY9RB4QeA5krhG8UJ45U X-IPAS-Result: AsgLADc1QVKva64Tbmdsb2JhbABagz+tMIdLjH+BHxYOKD6CJQEBBThAARALDQsJFg8JAwIBAgFFBg0BBwEBiAC9AY9RB4QeA5krhG8UJ45U X-IronPort-AV: E=Sophos;i="4.90,969,1371045600"; d="scan'208";a="225819163" Received: from unknown (HELO ub005lcs09.cbr.the-server.net.au) ([175.107.174.19]) by smtp-data2.ironport2.cbr1.mail-filtering.com.au with ESMTP; 24 Sep 2013 16:47:36 +1000 Received: from [1.140.165.225] (port=55314 helo=Ryan-McCues-MacBook.local) by ub005lcs09.cbr.the-server.net.au with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VOMPG-000bv2-UK; Tue, 24 Sep 2013 16:47:35 +1000 Message-ID: <52413584.9020903@rotorised.com> Date: Tue, 24 Sep 2013 16:47:32 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Tjerk Meesters CC: Dave , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Parsing PUT data From: lists@rotorised.com (Ryan McCue) Tjerk Meesters wrote: > Perhaps it might be a better idea to expose the multipart parser as a > function, so that you can bind the decoded body to either an object or > array. The trick is to keep `is_uploaded_file()`, etc. working, though. I've looked into this before (for almost this exact issue), and PHP internally checks that the file was originally created by the internal parser. If that's changed, there's probably security concerns with doing so. +1 on the idea though. -- Ryan McCue