|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-15 12:11 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
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.