php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #883 PHP_SELF is incorrect with cgi-bin version compiled without force-cgi-redirect
Submitted: 1998-10-29 11:33 UTC Modified: 1998-10-29 11:41 UTC
From: eb at gifrance dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (29/10/1998) OS: Solaris 2.5.1
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: eb at gifrance dot com
New email:
PHP Version: OS:

 

 [1998-10-29 11:33 UTC] eb at gifrance dot com
Here is the problem :

- Latest CVS version (updated 10 minutes ago)
- Solaris 2.5.1
- Netscape Enterprise Server 3.5.1 with Rasmus' redirect module
- PHP compiled as CGI-bin with Oracle and GD support, _without_
  force-cgi-redirect.

<?echo $PHP_SELF;?> in test.php3

http://my.server/test.php3                gives "/test.php3" => Ok

http://my.server/test.php3?var=1      gives "/test.php3/test.php3?var=1"  which is not correct.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-29 11:41 UTC] rasmus
Well, you need to compile with force-cgi-redirect and because of the way NSAPI works, you need to make a small change to main.c to get the NSAPI redirect module to work correctly.  The FAQ gives the URL where this is documented.  It is: http://www.webgenx.com/Kwazy/phpunix.html
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC