|  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
 [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 results in $PHP_SELF = /~anj/test//~anj/test/index.php whereas the URL 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().


Add a Patch

Pull Requests

Add a Pull Request


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