Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50913 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27561 invoked from network); 8 Dec 2010 18:49:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2010 18:49:39 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:35841] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/14-04432-143DFFC4 for ; Wed, 08 Dec 2010 13:49:38 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 7552E7000425; Wed, 8 Dec 2010 18:49:34 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id NElv3jt-4wqM; Wed, 8 Dec 2010 18:49:34 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 2A9447000427; Wed, 8 Dec 2010 18:49:33 +0000 (WET) Received: from cataphract-old (195.61.136.95.rev.vodafone.pt [95.136.61.195]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id C94DE2001A31; Wed, 8 Dec 2010 18:49:33 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Clint Byrum" Cc: internals@lists.php.net References: <1291821030.7243.230.camel@clint-MacBookPro> Date: Wed, 08 Dec 2010 18:49:16 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: <1291821030.7243.230.camel@clint-MacBookPro> User-Agent: Opera Mail/11.00 (Win32) Subject: Re: [PHP-DEV] RE : Re: [PHP-DEV] [PATCH] Add option to disable POST data processing From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Wed, 08 Dec 2010 15:10:30 -0000, Clint Byrum wrote: > On Wed, 2010-12-08 at 01:11 +0000, Gustavo Lopes wrote: >> >> For instance, current scripts can, in POST requests, read any number of >> times from php://input or $HTTP_RAW_POST_DATA (to simplify, let's say we >> even let go $HTTP_RAW_POST_DATA). For this to be possible, you would >> have to have the data in memory because you're reading from php://input >> the >> first time, you can't know if it will be read a second time, so you >> either break BC or keep everything in memory just in case there's a >> second read >> -- and then you're where you started. >> > > This example would be solved if during the lazy load you change the > php://input stream to point at the memory location that you read it > into. > I'm sorry, this doesn't make any sense. "The memory location you read into"? Who says you read the post data *into* something, much less a memory location? -- Gustavo Lopes