Philippe M. Chiasson wrote:
On Fri, 2003-11-14 at 10:12, Stas Bekman wrote:

Philippe M. Chiasson wrote:

in mp 1.x land, <Perl> sections used to set $0 to the name of the
configuration file it was in.

Following patches does just that for 2.x

there is one problem with it. You need to restore it to its original value after Perl sections are over, no? How did it work in mp1?


Absolutely right!

In mp1, it does that exact same thing, so it's also broken and doesn't
restore it to its original value

I vaguely remember some discussions about $0 being set to httpd vs. perl in mp1. It probably should be set to the location of httpd, since that's the running program, but -e works just fine for me. In mp1 PerlRunXS sets $0 to the current script name.


Following patch achieves that correctly, also taking care of untainting
$0 (didn't even know $0 was tainted) which is required to prevent
"unsafe dependency in eval" errors from hapenning (not 100% certain why
that is the case)

very cool. +1.


? t/core.12386
? t/core.13747
? t/core.2207
? t/core.31221
? t/core.31900
? t/core.5627
? t/core.6511
? t/core.7185

Hey, stop sending subliminal messages ;)


__________________________________________________________________
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