Bug #49825 [Opn]: PHP_SELF duplicate path
| From: | kalle@php.net | Date: | Thu, 18 Mar 2010 15:43:15 +0000 |
| Subject: | Bug #49825 [Opn]: PHP_SELF duplicate path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148738@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=49825&edit=1
ID: 49825
Updated by: kalle@php.net
Reported by: michaels at sc dot edu
Summary: PHP_SELF duplicate path
Status: Open
Type: Bug
Package: IIS related
Operating System: Windows Server 2000
PHP Version: 5.3.0
New Comment:
What SAPI module have you installed PHP as in IIS? FastCGI or ISAPI?
Previous Comments:
------------------------------------------------------------------------
[2009-10-13 15:50:13] michaels at sc dot edu
No, the full path does not contain non-ASCII chars, as in bug report
49840.
------------------------------------------------------------------------
[2009-10-12 11:09:54] sjoerd@php.net
See also Bug #49840 PHP_SELF returns incorrect value. Does the full path
of index.php contains non-ASCII characters?
------------------------------------------------------------------------
[2009-10-09 21:02:31] michaels at sc dot edu
Description:
------------
This issue is the same as reported in Bug #45637 but is happening with
IIS5 running on Server 2000.
The variable:
_SERVER["PHP_SELF"] /forums/adm/index.php/forums/adm/index.php
should be _SERVER["PHP_SELF"] /forums/adm/index.php
This is causing phpBB version 3 to operate incorrectly, by providing an
incorrect connection string.
Reproduce code:
---------------
These are vars from the info page - please note _SERVER["PHP_SELF"]:
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PORT_SECURE"] 0
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
_SERVER["SystemDrive"] C:
_SERVER["SystemRoot"] C:\WINNT
_SERVER["TEMP"] C:\WINNT\TEMP
_SERVER["TMP"] C:\WINNT\TEMP
_SERVER["USERPROFILE"] C:\Documents and Settings\WWW\ASPNET
_SERVER["windir"] C:\WINNT
_SERVER["SCRIPT_FILENAME"] D:\Inetpub\phpBB3\adm\index.php
_SERVER["PHP_SELF"] /forums/adm/index.php/forums/adm/index.php
_SERVER["REQUEST_TIME"] 1255105911
Expected result:
----------------
_SERVER["PHP_SELF"] /forums/adm/index.php
Actual result:
--------------
_SERVER["PHP_SELF"] /forums/adm/index.php/forums/adm/index.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=49825&edit=1