#31887 [Fbk->Opn]: Custom 5xx error does not return correct HTTP response message
| From: | trevor dot wekel at autodesk dot com | Date: | Sat, 05 Mar 2005 18:19:55 +0000 |
| Subject: | #31887 [Fbk->Opn]: Custom 5xx error does not return correct HTTP response message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74878@lists.php.net to get a copy of this message | ||
ID: 31887
User updated by: trevor dot wekel at autodesk dot com
Reported By: trevor dot wekel at autodesk dot com
-Status: Feedback
+Status: Open
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 5.0.3
New Comment:
Under IIS, the HTTP response message still came back as "Undescribed"
and not "CustomError". Do you need any additional information, such as
my php.ini file?
I downloaded and tested against php5.0-win32-200503051730.zip.
phpinfo() through IIS using php5isapi.dll version 5.0.4.4 showed the
Build Date as "Mar 5 2005 18:15:07" so I'm fairly sure I was using the
latest version of PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 20:46:31] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-02-08 17:48:30] trevor dot wekel at autodesk dot com
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 this bug report at http://bugs.php.net/?id=31887&edit=1