php.net |  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
Votes:3
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
 [2007-10-12 12:18 UTC] john at molony dot com
Description:
------------
$_SERVER ['PHP_SELF'] produces wrong result

in file index.php

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

produces:-

    http://localhost/index.php/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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-12 13:50 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

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: Thu Nov 21 18:01:29 2024 UTC