#41378 [NEW]: fastcgi protocol lacks support for Reason-Phrase in "Status:" header
From: anight at eyelinkmedia dot com
Operating system: any
PHP version: 5.2.2
PHP Bug Type: HTTP related
Bug description: fastcgi protocol lacks support for Reason-Phrase in "Status:" header
Description:
------------
Right now there is no way to set application-defined "Reason-Phrase" (as
defined in rfc2616) along with Status-Code in a Status-Line of http
response for fastcgi sapi. This affects php-4.4.7 too (fastcgi module based
on same code).
Fastcgi specs says:
http://www.fastcgi.com/devkit/doc/fcgi-spec.html
6.1 Role Protocols
[skipped]
Role protocols do not support the non-parsed header feature of CGI.
FastCGI
applications set response status using the Status and Location CGI
headers.
As I understand, the only way to specify Reason-Phrase is to pass it via
Status: header. This header itself will not reach a client, because it is
only valid within fastcgi protocol.
Reproduce code:
---------------
<? header("HTTP/1.0 404 Not Found"); ?>
Expected result:
----------------
web server respond with "HTTP/1.1 404 Not Found" status line.
Actual result:
--------------
web server respond with "HTTP/1.1 404" status line.
--
Edit bug report at http://bugs.php.net/?id=41378&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41378&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41378&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41378&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41378&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41378&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41378&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41378&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41378&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41378&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41378&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41378&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41378&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41378&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41378&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41378&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41378&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41378&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41378&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41378&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41378&r=mysqlcfg
Thread (4 messages)
- anight at eyelinkmedia dot com