#26990 [NEW]: PHP CGI does not handle Status header.

From: Date: Wed, 21 Jan 2004 11:58:33 +0000
Subject: #26990 [NEW]: PHP CGI does not handle Status header.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53691@lists.php.net to get a copy of this message
From: progcom@php.net Operating system: FreeBSD 5.2 PHP version: 4.3.4 PHP Bug Type: CGI related Bug description: PHP CGI does not handle Status header. Description: ------------ CGI version PHP does not handle 'Status: xxx' header. By CGI 1.1 Spec, header('Status: xxx') can produce http response code. (I can use 'HTTP/1.0 xxx', but I think CGI version should work with 'Status: xxx') on http://hoohoo.ncsa.uiuc.edu/cgi/out.html , Status This is used to give the server an HTTP/1.0 status line to send to the client. The format is nnn xxxxx, where nnn is the 3-digit status code, and xxxxx is the reason string, such as "Forbidden". Reproduce code: --------------- <?php header('Status: 303 See Other'); header('Location: http://example.org'); ?> Expected result: ---------------- Status: 303 Content-type: text/html Location: http://example.org Actual result: -------------- Status: 302 Content-type: text/html Status: 303 See Other Location: http://example.org -- Edit bug report at http://bugs.php.net/?id=26990&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26990&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26990&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26990&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26990&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26990&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26990&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26990&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26990&r=support Expected behavior: http://bugs.php.net/fix.php?id=26990&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26990&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26990&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26990&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26990&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26990&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26990&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26990&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26990&r=float

« previous php.bugs (#53691) next »