You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marcello Perathoner <ma...@perathoner.de> on 2000/05/30 20:05:48 UTC
os-windows/6130: Apache doesn't set PATH_INFO and PATH_TRANSLATED when calling a CGI-script
>Number: 6130
>Category: os-windows
>Synopsis: Apache doesn't set PATH_INFO and PATH_TRANSLATED when calling a CGI-script
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue May 30 11:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: marcello@perathoner.de
>Release: 1.3.12 (Win32)
>Organization:
apache
>Environment:
Win NT 4.0 Workstation SP 3 Multiprocessor Kernel
Precompiled Apache Version 1.3.12 (Win32)
PHP/4.0.0
Perl v5.6.0 MSWin32-x86-multi-thread
>Description:
Apache calls a CGI-scripts without setting the PATH_INFO and PATH_TRANSLATED environment variables. I don't know if these are *required* by the CGI Specs but notably PHP 4.0.0 dies without them.
I already have tried the suggestion in PR number 5077. Nothing changes.
Here are the relevant parts of my httpd.conf.
ScriptAlias /php/ "C:/Prj/mind-FACTory/Homepage/php/"
ScriptAlias /perl/ "C:/Prj/mind-FACTory/Homepage/php/"
<Directory "C:/Prj/mind-FACTory/Homepage/php">
ScriptInterpreterSource registry
AllowOverride None
Options None
</Directory>
AddHandler cgi-script .php
AddHandler cgi-script .pl
>How-To-Repeat:
Install this perl-script as CGI. It prints all environment variables. PATH_INFO and PATH_TRANSLATED are not there.
#!C:/perl/bin/perl
print "Content-Type: text/html\n\n";
print "<table>\n";
foreach $key (sort keys %ENV) {
print qq|<tr><th align="right" valign="top">$key : </th><td>$ENV{$key}</td></tr>\n|;
}
print "</table>\n";
>Fix:
No
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]