php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52035 Header Redirect Fails
Submitted: 2010-06-09 19:45 UTC Modified: 2013-02-18 00:34 UTC
From: mchotai at fulcrum dot ca Assigned:
Status: No Feedback Package: HTTP related
PHP Version: 5.2.13 OS: Microsoft-IIS/7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mchotai at fulcrum dot ca
New email:
PHP Version: OS:

 

 [2010-06-09 19:45 UTC] mchotai at fulcrum dot ca
Description:
------------
Hi,

I've encountered a bug in PHP 5.2.13 that doesn't happen in PHP 5.2.10. My header redirect statement doesn't produce a redirect. No error is reported.

The line that causes the bug is simply:
	header("location:store.php");

In the raw HTTP stream, I can see the redirect information missing (using ExamDiff on the output shown using LiveHTTPHeaders with Firefox). I am using two servers which are exactly the same (as they are virtual machines), both running same IIS, ASP.NET version, etc. The only difference was the PHP version. When I changed the version back to 5.2.10, both servers worked exactly the same. When I set one to 5.2.13, it wouldn't do the redirect to the page above.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-11 14:00 UTC] srinatar@php.net
most likely not a valid bug. pl. check the log file to see if you have reached the maximum number of redirects.
 [2010-06-11 14:01 UTC] srinatar@php.net
-Status: Open +Status: Feedback
 [2010-06-11 14:07 UTC] srinatar@php.net
I am able to redirect successfully with latest php source snapshot. can u pl. attach the output of live http headers to this ?

u could do some thing like below from the command line window (start->run->cmd)

telnet localhost 80
GET /<page-where-theproblem-is-reproduced  (page which contains Location: store.php) HTTP/1.0
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 01:01:33 2024 UTC