#36400 [Opn->Csd]: Custom 5xx error does not return correct HTTP response error code
| From: | tony2001@php.net | Date: | Wed, 15 Feb 2006 11:11:09 +0000 |
| Subject: | #36400 [Opn->Csd]: Custom 5xx error does not return correct HTTP response error code | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93287@lists.php.net to get a copy of this message | ||
ID: 36400
Updated by: tony2001@php.net
Reported By: paolo at casarini dot org
-Status: Open
+Status: Closed
Bug Type: Apache related
Operating System: Linux version 2.4.27-2-386
PHP Version: 5.1.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-02-15 10:12:11] paolo at casarini dot org
Description:
------------
When running PHP as an Apache module (Apache/1.3.34 (Debian)
PHP/5.1.2-1.dotdeb.2 mod_ssl/2.8.25 OpenSSL/0.9.8), the
response error code for a custom error is not correctly 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 response code returned is 500.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36400&edit=1