php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21884 enable-force-cgi-redirect doesnot work
Submitted: 2003-01-26 02:37 UTC Modified: 2003-02-14 08:35 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: kosmas at incredible dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.3.0 OS: BSD/OS
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: kosmas at incredible dot com
New email:
PHP Version: OS:

 

 [2003-01-26 02:37 UTC] kosmas at incredible dot com
I use PHP as CGI with Apache 1.3.27. I compiled PHP 
with --safe-mode and --enable-force-cgi-redirect (minimal config to verify the problem).

When I access php like http://domain.com/cgi-bin/php the 
"enable-force-cgi-redirect" works fine BUT when I aceess
http://domain.com/test.php and test.php does NOT exist I get
"No input file specified" and of course you may then pass parameters and the rest is known. ie http://www.domain.com/test.php?/etc/passwd returns the password file.

In exactly the same setups I never had problems with prior versions of PHP.
Also in the virual hosts in apache conf I have:
ScriptAlias /cgi-bin/ /home/domain/cgi-bin/

but this was always like this. The same compilation with 
PHP 4.3 RC2 and before and there was no problem

Thank you in advance

Kosmas Skiadopoulos

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-14 08:35 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC