Bug #52035 [Fbk]: Header Redirect Fails
| From: | srinatar@php.net | Date: | Fri, 11 Jun 2010 12:07:36 +0000 |
| Subject: | Bug #52035 [Fbk]: Header Redirect Fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151326@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52035&edit=1
ID: 52035
Updated by: srinatar@php.net
Reported by: mchotai at fulcrum dot ca
Summary: Header Redirect Fails
Status: Feedback
Type: Bug
Package: HTTP related
Operating System: Microsoft-IIS/7.0
PHP Version: 5.2.13
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2010-06-11 14:00:54] 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-09 19:45:08] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52035&edit=1