Custom 5xx error does not return correct HTTP response error code
| Bug #36400 | Custom 5xx error does not return correct HTTP response error code | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-02-15 10:12 UTC | Modified: | 2006-02-15 12:11 UTC | ||
| From: | paolo at casarini dot org | Assigned: | |||
| Status: | Closed | Package: | Apache related | ||
| PHP Version: | 5.1.2 | OS: | Linux version 2.4.27-2-386 | ||
| Private report: | No | CVE-ID: | None | ||
[2006-02-15 10:12 UTC] 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.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-02-15 12:11 UTC] tony2001@php.net