|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42947 $_SERVER ['PHP_SELF'] produces wrong result
Submitted: 2007-10-12 12:18 UTC Modified: 2007-10-20 01:00 UTC
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: john at molony dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.2.4 OS: Windows XP with IIS
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: john at molony dot com
New email:
PHP Version: OS:


 [2007-10-12 12:18 UTC] john at molony dot com
$_SERVER ['PHP_SELF'] produces wrong result

in file index.php

$url = $_SERVER ['PHP_SELF']. 'page2.php';



The problem seem to be with 5.2.4 code works perfectly with 5.2.3

Using php in cgi mode with IIS


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-12 13:50 UTC]
Please try using this CVS snapshot:
For Windows (zip):

For Windows (installer):

AFAIK, this is already fixed.
 [2007-10-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 12:01:28 2024 UTC