Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84708 invoked by uid 1010); 1 May 2007 00:31:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84693 invoked from network); 1 May 2007 00:31:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2007 00:31:06 -0000 X-Host-Fingerprint: 80.219.9.20 80-219-9-20.dclient.hispeed.ch Received: from [80.219.9.20] ([80.219.9.20:9183] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/53-42224-84A86364 for ; Mon, 30 Apr 2007 20:31:05 -0400 To: internals@lists.php.net,Rasmus Lerdorf Message-ID: <46368A55.605@cschneid.com> Date: Tue, 01 May 2007 02:31:17 +0200 User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 References: <46367F96.6080205@cschneid.com> <46368091.4050606@lerdorf.com> <200705010212.52622.lists@block-online.eu> <4636883E.7010603@lerdorf.com> In-Reply-To: <4636883E.7010603@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.219.9.20 Subject: Re: [PHP-DEV] Setting HTTP results code vs. HTTP type From: cschneid@cschneid.com (Christian Schneider) Rasmus Lerdorf wrote: > Go read the archives. And note that I only said it was fine to respond > with a 1.1 reply, that doesn't mean it is fine to send an encoding the > client doesn't support. That's why I think PHP shouldn't mess with the proto_num field or otherwise upgrade the HTTP version of the response because it makes Apache believe it is safe to send a chunked response if it wants to. And I don't see any benefit in doing so. I'd be interested to learn why this was done though. My assumption so far is that it's done "because the PHP script asked for HTTP/1.1 so we should try to send that back" without considering the danger of creating a chunked response as a side effect. Regards, - Chris