php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4788 $PHP_SELF value incorrect when URL omits index.php part
Submitted: 2000-06-02 22:16 UTC Modified: 2000-08-18 13:24 UTC
From: anj at aps dot anl dot gov Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Release Candidate 1 OS: Solaris 2.6 sparc
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: anj at aps dot anl dot gov
New email:
PHP Version: OS:

 

 [2000-06-02 22:16 UTC] anj at aps dot anl dot gov
Our server (Netscape Enterprise 3.0) and PHP are set up to serve the index.php file if only a directory name is specified in a URL. When this facility is used, the $PHP_SELF variable contains the directory part doubled.  Eg, the URL http://www.aps.anl.gov/~anj/test/ results in $PHP_SELF = /~anj/test//~anj/test/index.php whereas the URL http://www.aps.anl.gov/~anj/test/index.php returns the correct string. The PATH_INFO variable is correct though, so I use that as a workaround although that may not be correct in all situations. The above URLs currently display the relevent variables and phpinfo().

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 06:06 UTC] zak@php.net
Have you tried a recent release of php?  If so, does the problem occur in the new release?
 [2000-08-18 13:24 UTC] waldschrott@php.net
Closed due to missing user feedback.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 07:01:23 2020 UTC