[EMAIL PROTECTED] wrote:
stas 2004/02/13 20:50:32

  Modified:    src/modules/perl modperl_env.c
  Log:
  move modperl_env_default_populate to where it was before (after
  modperl_env_table_populate), so that GATEWAY_INTERFACE will be
  CGI-Perl/1.1 and not CGI/1.1.

we still have a problem, which existed before the last env handling revamp.


I think modules/cgi should work with this patch:

Index: t/response/TestModules/cgi.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/response/TestModules/cgi.pm,v
retrieving revision 1.11
diff -u -r1.11 cgi.pm
--- t/response/TestModules/cgi.pm       22 May 2002 18:53:33 -0000      1.11
+++ t/response/TestModules/cgi.pm       14 Feb 2004 04:51:53 -0000
@@ -55,4 +55,4 @@
 1;
 __END__
 SetHandler perl-script
-
+PerlOptions -SetupEnv

and it doesn't. $ENV{GATEWAY_INTERFACE} set at the boot time is later lost (whereas $ENV{MOD_PERL} survives). I suppose this has to do with the code that removes the values from %ENV at the end of the request, so they won't persist for the next request. So it should really do localizing and not set/unset.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to