Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66781 invoked from network); 24 Feb 2011 22:57:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2011 22:57:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=carsten_sttgt@gmx.de; sender-id=fail Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.12 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.12 lo.gmane.org Linux 2.6 Received: from [80.91.229.12] ([80.91.229.12:49416] helo=lo.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/53-40671-042E66D4 for ; Thu, 24 Feb 2011 17:57:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Psk7B-0007Ps-Ol for internals@lists.php.net; Thu, 24 Feb 2011 23:56:53 +0100 Received: from dslb-178-007-222-162.pools.arcor-ip.net ([178.7.222.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 23:56:53 +0100 Received: from carsten_sttgt by dslb-178-007-222-162.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 23:56:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Thu, 24 Feb 2011 23:56:47 +0100 Lines: 54 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-178-007-222-162.pools.arcor-ip.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-Antivirus: avast! (VPS 110224-1, 24.02.2011), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] problem with header() and php trunk From: carsten_sttgt@gmx.de (Carsten Wiedmann) On 24/02/11 10:41 PM, Ben Schmidt wrote: > On 25/02/11 3:28 AM, Carsten Wiedmann wrote: >> this code is not working with the current trunk: >> | > | header('Content-Language: '); >> | ?> >> >> The result is an internale server error: >> | [Thu Feb 24 17:21:25 2011] [error] [client ::1] malformed header >> | from script. Bad header=Content-Language: php-cgi.exe > > I don't think this is a PHP problem. Everything in the error message > indicates to me that PHP is doing what you told it to do, and the > webserver doesn't like it (for whatever reason). This is either your > fault, or the webserver's fault, and I don't see why PHP should > compensate for it. > > Ben. Oh, this only happens with trunk, but not with e.g 5.3.5. But just see the difference: test.php | That's what PHP 5.3.5 is sending to the server: | X-Powered-By: PHP/5.3.5 | Content-Language: | Content-type: text/html And that's what PHP trunk is sending to the server: | X-Powered-By: PHP/5.3.99-dev | Content-Language | Content-type: text/html see the missing ":" after the header name. if I'm using this script: test.php | the output is correct: | X-Powered-By: PHP/5.3.99-dev | Content-Language: | Content-type: text/html Regards, Carsten