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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oopul at 126 dot com
New email:
PHP Version: OS:

 

 [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: Sat Apr 27 19:01:29 2024 UTC