#24916 [Opn->Bgs]: IIS6.0 & CGI PHP header()
| From: | iliaa@php.net | Date: | Tue, 05 Aug 2003 01:25:01 +0000 |
| Subject: | #24916 [Opn->Bgs]: IIS6.0 & CGI PHP header() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45355@lists.php.net to get a copy of this message | ||
ID: 24916
Updated by: iliaa@php.net
Reported By: sadun at isikun dot org
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows Server 2003
PHP Version: 4.3.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
It would seem to me that if you make a redirect loop that the webserver
may detect such an occurance and throw an error as it happens in your
case. This is hardly a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2003-08-04 13:55:40] sadun at isikun dot org
i forgot to pick Status Open :)
still have the problem which is at the top...
------------------------------------------------------------------------
[2003-08-04 12:25:32] sadun at isikun dot org
I FOUND THE PROBLEM IF YOU REDIRECT USER TO SAME PHP FILE IT MAKES AN
ERROR LOOP.
let's say i execute a code at main.php and if i redirect user to
main.php you can see in the headers that it makes a loop with errors at
headers with "INET_E_REDIRECT_FAILED" but you can redirect anywhere
else except same file...
CODE
---------------------
<?
header("Location: http://webgroup.isikun.edu.tr/arge/header.php");
?>
ERROR AT HEADERS
---------------------
20:15:48.279 0.109 * GET INET_E_REDIRECT_FAILED text/html http://webgroup.isikun.edu.tr/arge/header.php
------------------------------------------------------------------------
[2003-08-04 12:03:35] sadun at isikun dot org
!!! UPS.. NOW I CAN REDIRECT WITH GET BUT NOT WITH POST
i don't really know if my codes make this problem but except "IIS 6.0
CGI" i try it several apache servers 1.x 2.x both on unix and winNT
platforms and it always worked.
HERE ARE THE HEADERS
------------------------------------------------
19:54:03.732 0.203 * POST INET_E_REDIRECT_FAILED text/html http://webgroup.isikun.edu.tr/main.php
-------------------------------------------------
(Response Status) HTTP/1.1 302 Redirect
Cache-Control no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma no-cache
Content-Length 161
Content-Type text/html
Expires Thu, 19 Nov 1981 08:52:00 GMT
Location Http://webgroup.isikun.edu.tr/main.php
Server Microsoft-IIS/6.0
X-Powered-By PHP/4.3.3RC2
Set-Cookie PHPSESSID=ad1a199467d611ed39773d5e56358239; path=/
Set-Cookie student_session_id=6c9009a421a409c1385dde256b693840
X-Powered-By ASP.NET
Date Mon, 04 Aug 2003 17:00:28 GMT
------------------------------------------
sorry for disturbing
------------------------------------------------------------------------
[2003-08-04 09:02:59] sadun at isikun dot org
PROBLEM IS SOLVED WITH PHP4.3.3RC2
thanks for your help
------------------------------------------------------------------------
[2003-08-04 08:38:44] sadun at isikun dot org
;cgi.redirect_status_env = ENV_VAR_NAME
no changes header("Location: URL_FOO");
can't be send in 4.3.2 IIS6.0 with CGI
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24916
--
Edit this bug report at http://bugs.php.net/?id=24916&edit=1