Re: issues with figuring out which mp version is running

2006-01-22 Thread Stas Bekman
Geoffrey Young wrote: [...] but regardless, stas has a point - we need a definitive way to tell whether you are running under mp1 or mp2, then update the docs. my suggestion is to check for $ENV{MOD_PERL_API_VERSION}, which only exists in the official 2.0 API (mp 1.999_22 and later). if that is

Re: issues with figuring out which mp version is running

2006-01-22 Thread Geoffrey Young
> Sure in: > http://search.cpan.org/src/FWILES/Apache-DB-0.10/lib/Apache/DProf.pm > > it goes: > > use constant MP2 => eval { require mod_perl; $mod_perl::VERSION > 1.99 }; > > so MP2 can never be true, never is an awfully long time :) > since it should be mod_perl2 not mod_perl. mod_perl2

Re: issues with figuring out which mp version is running

2006-01-22 Thread Frank Wiles
On Sat, 21 Jan 2006 20:32:35 -0800 Stas Bekman <[EMAIL PROTECTED]> wrote: > Sure in: > http://search.cpan.org/src/FWILES/Apache-DB-0.10/lib/Apache/DProf.pm > > it goes: > >use constant MP2 => eval { require mod_perl; $mod_perl::VERSION > > 1.99 }; > > so MP2 can never be true, since it shou