From:             f dot hardy at origami-systems dot com
Operating system: freebsd 4.10
PHP version:      5.0.4
PHP Bug Type:     HTTP related
Bug description:  Header and _POST problem

Description:
------------
I have a problem with $_POST and the header() function.
If I make a test on $_POST, my 404 http header is replaced by a 2OO OK
header.
If I make a test on $_GET (with a get action in html form), or an another
variable, I receive the 404 http header.



Reproduce code:
---------------
<?php
if (isset($_POST['test']) == true)
{
        header("HTTP/1.1 404 Not Found", true);
        die();
}
else
{
?>
<form method="post">
        <input type="text" name="test" value="" />
        <input type="submit" name="modify" value="Modify" />
</form>
<?php
}
?>

Expected result:
----------------
A 404 HTTP header in response.

Actual result:
--------------
A 200 OK HTTP header in response.

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

Reply via email to