httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10820] New: - apache1.3(win32) mod_perl (activestate) path_info error
Date Mon, 15 Jul 2002 07:04:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10820

apache1.3(win32) mod_perl (activestate) path_info error

           Summary: apache1.3(win32) mod_perl (activestate) path_info error
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other mods
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: thuety@yahoo.com


If you run the following perl code (on Apache 1.3.2x (win32) - mod_perl
1.27_01-dev - activstate perl build 631/633):
- once with bla/test.pl/xxxxxxxxxx
- and then bla/test.pl
...the first foreach will have _NO_ PATH_INFO entry
...the hardcoded $ENV{'PATH_INFO'} will have it!!!
...and also the second foreach will have it!!!

The Path_info seems to be cached serverwide. Every time I use a
$ENV{'PATH_INFO'} it has contents even though it shouldn't. The path_info isn't
initialized correctly on win32 (linux apache/mod_perl doesn't show this behavior).

#!/perl/bin/perl
use strict;
print "content-type: text/html\n\n";
print '<html><body>';
my $val;
foreach my $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"<br>";
}
print '<br>',$ENV{'PATH_INFO'},'<br><br>';
foreach my $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"<br>";
}
print '</body></html>';

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message