From: trevor dot wekel at autodesk dot com
Operating system: Windows XP
PHP version: 5.0.3
PHP Bug Type: IIS related
Bug description: Custom 5xx error does not return correct HTTP response message
Description:
------------
When running PHP as an ISAPI extension under IIS 5.1 / Windows XP, the
response message for a custom error is not returned.
Reproduce code:
---------------
<?php
header("HTTP/1.1 559 CustomError");
header("Status: 559 CustomError");
echo "<html>\n";
echo "<body>\n";
echo "Error on page!!!\n";
echo "</body>\n";
echo "</html>\n";
?>
Expected result:
----------------
I would expect to see an HTTP response code of 559 with a response message
of "CustomError".
Actual result:
--------------
The HTTP 559 response code is returned correctly but the response message
comes back as "Undescribed".
When running php as a CGI under IIS, this problem does not occur. Both
the response code and response message come back correctly.
The problem does not occur under Apache 2.0 / Windows XP when running as
either a CGI or an Apache module.
Bug #31519 is a related and fixed bug under Apache 2.
Bug #31065 may also be a related bug under Apache / Linux.
--
Edit bug report at http://bugs.php.net/?id=31887&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31887&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31887&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31887&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31887&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31887&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31887&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31887&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31887&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31887&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31887&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31887&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31887&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31887&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31887&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31887&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31887&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31887&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31887&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31887&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31887&r=mysqlcfg