Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85273 invoked by uid 1010); 21 Nov 2003 18:09:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85206 invoked from network); 21 Nov 2003 18:09:31 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.189) by pb1.pair.com with SMTP; 21 Nov 2003 18:09:31 -0000 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng6.kundenserver.de with esmtp (Exim 3.35 #1) id 1ANFih-0004Pn-00; Fri, 21 Nov 2003 19:09:27 +0100 Received: from [217.160.132.207] (helo=php.net) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1ANFih-0000Sz-00; Fri, 21 Nov 2003 19:09:27 +0100 Message-ID: <3FBE554C.4090204@php.net> Date: Fri, 21 Nov 2003 19:11:24 +0100 Reply-To: hartmut@php-groupies.de User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en, de MIME-Version: 1.0 To: Doru Petrescu CC: hartmut@php-groupies.de, Andi Gutmans , internals@lists.php.net References: <5.1.0.14.2.20031112103102.063e7810@127.0.0.1> <3FBD80A9.7050707@php.net> <1069401240.1790.17.camel@dtp.kappa.ro> In-Reply-To: <1069401240.1790.17.camel@dtp.kappa.ro> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:4d0d1aa686edf46be04a942500a6c0af Subject: Re: [PHP-DEV] raw post data From: hartmut@php.net (Hartmut Holzgraefe) Doru Petrescu wrote: > I don't think this will help either as PHP always read the entire > content-length BEFORE even loading the actual php script. As long as you > using php as a web server module you cannot escape this. this is true if either RAW_POST_DATA is populated or a post handler for the mime type of the POST request is activated, for POST requests that come with a mime type we have no handler registered for i am not sure right now ... > if you need to run something while the data is received we need to > change the way php works. the way I see things is to put hook in the > function that read the data from the client. This will allow execution > of code while post data is received. i already did (in a way) by introducing the php://input stream in PHP 4.3.0, although it actually is more about PUT than POST ... -- Hartmut Holzgraefe