php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43030 $_SERVER['PHP_SELF'] problem
Submitted: 2007-10-19 05:15 UTC Modified: 2007-10-19 05:48 UTC
From: oopul at 126 dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 5.2.4 OS: Windows 2003
Private report: No CVE-ID: None
 [2007-10-19 05:15 UTC] oopul at 126 dot com
Description:
------------
MY SYSTEM:Windows 2003
PHP VERSION:PHP 5.2.4

When I run php in the FASTCGI under the IIS 6.0 
Then the $_SERVER['PHP_SELF'] of not being normal.
For example:
my php script is named 'test.php' 
the test code:
----------------------------
<?php
echo $_SERVER['PHP_SELF'];
?>
----------------------------
The result is "/test.php/test.php"

The Error is found in FastCGI/CGI with windows 2003 IIS6
-------------------------------------------------------------------
If the php script run in apache module or IIS isapi,
the error is not found. why?
-------------------------------------------------------------------
if When I run php in the FastCGI under the IIS 5.1 With Windows XP

also not error found!

Reproduce code:
---------------
<?php
echo $_SERVER['PHP_SELF'];
?>


Expected result:
----------------
/test.php/test.php

Actual result:
--------------
/test.php

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-19 05:23 UTC] oopul at 126 dot com
Expected result:
----------------
/test.php

Actual result:
--------------
/test.php/test.php
 [2007-10-19 05:48 UTC] oopul at 126 dot com
this is already fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC