On Mon, 3 Jun 2002, Doug MacEachern wrote:
> On Sun, 2 Jun 2002, Stas Bekman wrote:
>
> > The %ENV part is fine, but why don't I see: EnvTest env var set in the
> > config file via subprocess_env? Is it supposed be this way?
>
> see modperl_env.c:
> /* XXX: might want to always do this regardless of PerlOptions -SetupEnv */
> modperl_env_configure_request(r);
>
> not sure it should be the default since it rather expensive. if one is
> not using SetHandler perl-script, why not just use Perl{Set,Add}Var
> instead of PerlSetEnv? there is also SetEnv from mod_env.c, which will
> always populate r->suprocess_env, just doesn't happen until the fixup
> phase.
whichever way is fine with me, I was documenting the differences between
modperl and perl-script and wasn't sure how to document this. So should I
say:
under the "modperl" handler use Perl{Set,Add}Var instead of
Perl{Set,Pass}Env. Alternatively use {Set,Pass}Env, which will always
populate r->suprocess_env, but doesn't happen until the fixup phase.
__________________________________________________________________
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]