|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49825 PHP_SELF duplicate path
Submitted: 2009-10-09 21:02 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: michaels at sc dot edu Assigned:
Status: No Feedback Package: IIS related
PHP Version: 5.3.0 OS: Windows Server 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: michaels at sc dot edu
New email:
PHP Version: OS:


 [2009-10-09 21:02 UTC] michaels at sc dot edu
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["SystemDrive"]	C:
_SERVER["SystemRoot"]	C:\WINNT
_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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-12 11:09 UTC]
See also Bug #49840 PHP_SELF returns incorrect value. Does the full path of index.php contains non-ASCII characters?
 [2009-10-13 15:50 UTC] michaels at sc dot edu
No, the full path does not contain non-ASCII chars, as in bug report 49840.
 [2010-03-18 16:43 UTC]
What SAPI module have you installed PHP as in IIS? FastCGI or ISAPI?
 [2010-03-18 16:43 UTC]
-Status: Open +Status: Feedback
 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 10:01:26 2023 UTC