#20943 [NEW]: header("HTTP/1.1 nnn xxx") not working under Apache

From: Date: Wed, 11 Dec 2002 17:48:52 +0000
Subject: #20943 [NEW]: header("HTTP/1.1 nnn xxx") not working under Apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27385@lists.php.net to get a copy of this message
From: michele.manzato@verona.miz.it Operating system: WIN2K, Apache 1.3.x/2.0.x PHP version: 4.2.3 PHP Bug Type: Output Control Bug description: header("HTTP/1.1 nnn xxx") not working under Apache 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 bug report at http://bugs.php.net/?id=20943&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20943&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20943&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20943&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20943&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20943&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20943&r=support Expected behavior: http://bugs.php.net/fix.php?id=20943&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20943&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20943&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20943&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20943&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20943&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20943&r=isapi

« previous php.bugs (#27385) next »