From:             paolo at casarini dot org
Operating system: Linux version 2.4.27-2-386
PHP version:      5.1.2
PHP Bug Type:     Apache related
Bug description:  Custom 5xx error does not return correct HTTP response error 
code

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 bug report at http://bugs.php.net/?id=36400&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36400&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36400&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36400&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36400&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36400&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36400&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36400&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36400&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36400&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36400&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36400&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36400&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36400&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36400&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36400&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36400&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36400&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36400&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36400&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36400&r=mysqlcfg

Reply via email to