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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
1 + 29 = ?
Subscribe to this entry?

 
 [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: Fri May 03 13:01:32 2024 UTC