php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42709 $_SERVER['PHP_SELF'] provides wrong values
Submitted: 2007-09-19 11:39 UTC Modified: 2007-09-19 13:18 UTC
From: sarith at securehosting dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.2.4 OS: Windows Server 2003 IIS 6.0 CGI
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 35 = ?
Subscribe to this entry?

 
 [2007-09-19 11:39 UTC] sarith at securehosting dot com
Description:
------------
Wrong output of PHP_SELF directive when PHP was upgraded to 5.2.4
This directive works fine on 5.2.2 and 5.2.3

Reproduce code:
---------------
For a script 
https://www.somedomain.com/test/index.php 
with the following code:

echo $_SERVER['PHP_SELF'];

Expected result:
----------------
/phpinteractive/index.php

Actual result:
--------------
/phpinteractive/index.php/phpinteractive/index.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-19 13:18 UTC] jani@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.

Already fixed in CVS too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 12:01:26 2024 UTC