From:             rogeliotg2004 at yahoo dot es
Operating system: Linux Mandrake 10.1
PHP version:      4.3.10
PHP Bug Type:     Output Control
Bug description:  Location redirects don't work, HTTP 200 instead HTTP 302

Description:
------------
I have apache 2.0.50 on linux mandrake 10.1. I had php 4.3.8, now I've
installed 4.3.10 by  urpmi.
Then I got the mentioned problem, when I use header("location: ...), the
header is sended in the response, but the HTTP 302 sended in 4.3.8 is now
a HTTP 200.
Try whatever script that you want, with a location like a full or relative
URL.
Best Regards,

Reproduce code:
---------------
<?
   header("location: www.google.com");
   die;
?>

Expected result:
----------------
HTTP/1.x 302 found
Location: www.google.com
...more headers



Actual result:
--------------
HTTP/1.x 200 OK

Location: www.google.com
...more headers



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

Reply via email to