From:             OvdSpek at LIACS dot NL
Operating system: Windows XP
PHP version:      5.0.3
PHP Bug Type:     *General Issues
Bug description:  header("Status: 404 Not Found"); doesn't work

Description:
------------
I tried to use the code from the example, but it doesn't work. It appears
the status header has been ignored completely.

http://php.net/header

GET /temp/404.php HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---------------
<?php
header("Status: 404 Not Found");
?>

Expected result:
----------------
HTTP/1.1 404 Not Found

Actual result:
--------------
HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1


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

Reply via email to