Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13793 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34863 invoked by uid 1010); 8 Nov 2004 17:39:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31835 invoked from network); 8 Nov 2004 17:38:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 8 Nov 2004 17:38:45 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iA8HcgUc025027 for ; Mon, 8 Nov 2004 12:38:42 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iA8Hcfr18327 for ; Mon, 8 Nov 2004 12:38:41 -0500 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id iA8HcerS025581 for ; Mon, 8 Nov 2004 17:38:40 GMT Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id iA8HceGW025580 for internals@lists.php.net; Mon, 8 Nov 2004 17:38:40 GMT Date: Mon, 8 Nov 2004 17:38:40 +0000 To: internals@lists.php.net Message-ID: <20041108173840.GA25573@redhat.com> Mail-Followup-To: internals@lists.php.net References: <418B4909.7010203@ailis.de> <255444644.20041105104900@marcus-boerger.de> <418B4FF6.4020503@ailis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] Upload Progress Meter Patch From: jorton@redhat.com (Joe Orton) On Fri, Nov 05, 2004 at 11:07:53AM +0100, Derick Rethans wrote: > On Fri, 5 Nov 2004, Klaus Reimer wrote: > > > Marcus Boerger wrote: > > > we've haered of it in the past but it was too late to add for 4.3 > > > series and obviously nobody cared to look for it for 5.0. So no the > > > next version we could add it to would be 5.1. In general the idea > > > is nice but it should also allow for script callbacks: > > > > This is possible? Up to now I thought that the retrieving and processing > > of POST data is done BEFORE the PHP script is loaded. If I'm wrong here > > it definetly would be a cool thing to have script callbacks for this. > > You are not wrong, POST/GET data is parsed before the PHP scripts are > run. I also think that functionality like this should not be part of PHP > itself. It is a user interface problem, so it should be done there. It's really the only place it can be done safely: sending an HTTP response before the request body has been entirely read is fundamentally risky, too: HTTP clients are not required to read response data concurrently to sending request bodies, so sending the upload meter stuff can fill the TCP send buffer server-side and deadlock the connection for a compliant HTTP client. joe