perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Am I running mod perl 2?
Date Mon, 01 Aug 2005 16:57:51 GMT
Joe Schaefer <joe+gmane@sunstarsys.com> writes:

> Dominique Quatravaux <dom@idealx.com> writes:
>
>> I would like a robust way of checking the mod_perl version (or lack
>> thereof) of the *currently running* Perl interpreter. I did kludge up
>> one, but it is rear-end ugly (see code at the end of my post in the
>> other thread).
>>
>> Support from mod_perl itself (e.g. in the form of a running_version()
>> XS sub) would be helpful and robust. Causing mod_perl2.pm to fail
>> initialization when not running under mod_perl (using an XS detection
>> kludge like mine, *not* $ENV{MOD_PERL}) would be a second best.
>
> I like the second-best option, actually: IMO "require mod_perl2"
> should throw an exception unless we're actually running under the 
> mod_perl.so interpreter.

I should have pointed out tho that a change like this certainly
shouldn't happen in mp2.0.  For better or worse, we chose to use
$ENV{MOD_PERL} to signal the runtime.

-- 
Joe Schaefer


Mime
View raw message