#26825 [Com]: $_SERVER['REQUEST_URI'] not being set on IIS6
| From: | IsaacSchlueter at hotmail dot com | Date: | Fri, 19 Mar 2004 05:18:15 +0000 |
| Subject: | #26825 [Com]: $_SERVER['REQUEST_URI'] not being set on IIS6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56659@lists.php.net to get a copy of this message | ||
ID: 26825
Comment by: IsaacSchlueter at hotmail dot com
Reported By: konkew at rpi dot edu
Status: Bogus
Bug Type: Variables related
Operating System: Windows Server 2003
PHP Version: 4.3.4
New Comment:
I ran into this problem in IIS 5.0 running on XP, with PHP versions
4.3.4 and 4.3.3, installed with either the installer or by extracting
the zip.
The odd thing, I didn't have this problem before. All $_SERVER vars
were working fine. But, like an idiot, I installed Apache, then
uninstalled it when I realized that it would make some other things
break. Now, there's no $_SERVER['REQUEST_URI']. Strange, huh?
I tried removing and re-installing IIS, but no effect. Checked through
the whole php.ini file, and played around with settings. Nothing
seemed to make it come back.
I searched google for info on this, and from what I found, there are a
few other cases of this happening, and in many, it seems that the
common element is installing Apache and then removing it and installing
IIS. I did this on another computer just to be sure that that's the
reason, and sure enough, same thing happens.
Steps to reproduce:
Install IIS.
Install PHP.
Install Apache.
Remove Apache.
Several $_SERVER vars are suddenly gone.
This might be a bug in Apache and/or IIS rather than PHP, but I'm
completely stumped either way. It seems that I've completely cleaned
the system and restarted, but the problem didn't go away. I have no
idea what could have been changed that I'm missing.
My only thought at this point is to back up the data, format the drive,
and start over from scratch. But I'd really love to avoid that. If
someone can repro this and then fix it, I'll pay you for the solution.
But beware, you might just get yourself stuck in the same position I
am!
Previous Comments:
------------------------------------------------------------------------
[2004-02-04 06:22:15] tcflee at netvigator dot com
Is $_SERVER['REQUEST_URI'] being removed on purpose? I have that in
PHP4.1.1 but not PHP4.3.4.
------------------------------------------------------------------------
[2004-01-07 21:16:41] sniper@php.net
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.
------------------------------------------------------------------------
[2004-01-07 03:13:21] konkew at rpi dot edu
Description:
------------
On Windows Server 2003 (running IIS6), $_SERVER['REQUEST_URI'] isn't
being set.
Reproduce code:
---------------
echo $_SERVER['REQUEST_URI'];
Expected result:
----------------
/dir/test.php?asdf=fds
Actual result:
--------------
null
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26825&edit=1