#20943 [Opn->Fbk]: header("HTTP/1.1 nnn xxx") not working under Apache
| From: | derick@php.net | Date: | Wed, 11 Dec 2002 17:55:23 +0000 |
| Subject: | #20943 [Opn->Fbk]: header("HTTP/1.1 nnn xxx") not working under Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27387@lists.php.net to get a copy of this message | ||
ID: 20943
Updated by: derick@php.net
Reported By: michele.manzato@verona.miz.it
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: WIN2K, Apache 1.3.x/2.0.x
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-12-11 11:48:52] michele.manzato@verona.miz.it
Tried writing this script (PHP 4.2.3, Apache 1.3.x/2.0.x, not tried
under IIS):
<?php
header("HTTP/1.1 200 OK\r\n");
?>
Hello
If PHP is configured as a Module it works fine. If PHP is configured as
CGI Apache breaks the output and shows its own "Internal Server Error"
page. Apache was installed as out-of-the box, no special options apart
PHP/CGI configuration directives. Apache error log line is:
[Wed Dec 11 18:41:38 2002] [error] [client 127.0.0.1] malformed header
from script. Bad header=HTTP/1.1 200 OK: php-cgi.exe
Is this a correct behaviour? My config is broken? Is it a bug for
Apache????
Thanks
Michele
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20943&edit=1