php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43613 $_SERVER['PHP_SELF'] gives appended url output
Submitted: 2007-12-16 23:51 UTC Modified: 2007-12-17 09:13 UTC
From: todd dot jackson at manukau dot ac dot nz Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.5 OS: win xp
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: todd dot jackson at manukau dot ac dot nz
New email:
PHP Version: OS:

 

 [2007-12-16 23:51 UTC] todd dot jackson at manukau dot ac dot nz
Description:
------------
$_SERVER{'PHP_SELF'] outputs /dir1/dir2/script_name.php/dir1/dir2/script_name.php

instead of /dir1/dir2/script_name.php

Note: tested winxp sp2 iis5.1 php5.2.4 fast-cgi

works fine if php installed as isapi module in iis5.1

Reproduce code:
---------------
<?php

echo "\$_SERVER{\'PHP_SELF\'] is : ".$_server['PHP_SELF']

?>

Expected result:
----------------
/dir1/dir2/script_name.php

or

passing get vars (querystring)

/dir1/dir2/script_name.php?foo=bar&foo1=bar1

Actual result:
--------------
/dir1/dir2/script_name.php/dir1/dir2/script_name.php

or 

passing get vars (querystring)

/dir1/dir2/script_name.php/dir1/dir2/script_name.php?foo=bar&foo1=bar1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-17 09:13 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 16:01:31 2024 UTC