From:             cpuidle at gmx dot de
Operating system: WinXP SP3
PHP version:      5.3.1
PHP Bug Type:     HTTP related
Bug description:  HTTP redirection broken in 5.3.1

Description:
------------
Sending Location headers in php 5.3.1 does set return status to 302 but
does not relay the location header to the client app- preventing
redirection from working.

Reproduce code:
---------------
<?php

header("Location: other.php");

?>

Expected result:
----------------
Should open the other.php page.

Actual result:
--------------
Nothing. Following output is captured by Firefox- it shows that the
location header is missing:

GET /videodb/test.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2)
Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: VDBuserid=1; VDBusername=admin; VDBpassword=368368530;
PHPSESSID=1ka2had3fipg89rkt7o9v6s601
Cache-Control: max-age=0

HTTP/1.1 302 Found
Date: Fri, 19 Feb 2010 19:10:41 GMT
Server: Apache/2.2.11 (Win32) PHP/5.3.1
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8


-- 
Edit bug report at http://bugs.php.net/?id=51092&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51092&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51092&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51092&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51092&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51092&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51092&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51092&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51092&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51092&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51092&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51092&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51092&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51092&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51092&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51092&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51092&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51092&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51092&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51092&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51092&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51092&r=mysqlcfg

Reply via email to