and of course need to fix that in mp2.
I'll tacked the mp2 bits this week.
just looking at it now...
it seems that mp2 doesn't respect (Perl)SetEnv PERL5LIB - I can't find it in the code and can't get it to work in the tests.
It's not mp2, it's perl. See the last para:
PERL5LIB A list of directories in which to look for Perl library
files before looking in the standard library and the cur-
rent directory. Any architecture-specific directories
under the specified locations are automatically included if
they exist. If PERL5LIB is not defined, PERLLIB is used.
Directories are separated (like in PATH) by a colon on
unixish platforms and by a semicolon on Windows (the proper
path separator being given by the command "perl
-V:path_sep"). When running taint checks (either because the program was
running setuid or setgid, or the -T switch was used), nei-
ther variable is used. The program should instead say:use lib "/my/directory";
comment out PerlSwitches -T and it'll appear.
> as I looked at implementing it, I can't decide on where to put it, since > I never really liked how it behaved in mp1 (as a pseudo-global that > really couldn't be set on a per-<Location> basis even though it's syntax > allowed for it). > > so, my thought now is to abandon SetEnv PERL5LIB and rely on > PerlSwitches -I exclusively for adding @INC paths to the interpreter via > httpd.conf. > > sound ok?
mp1 has a special code to circumvent perl's ignorance of PERL5LIB under -T. We could copy it over, but I'd suggest to run it only at the server startup (only if we detect that -T is On) and never touch it again. We probably need to support that, so that it won't give users a reason not to use -T.
__________________________________________________________________ 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]
