You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Gary Benson <gb...@redhat.com> on 2002/11/06 12:33:48 UTC
MODPERL2 definition not defined
(from https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75194)
Hi,
The technique presented in <http://perl.apache.org/docs/2.0/devel/porting/porting.html#Requiring_a_specific_mod_perl_version_>
doesn't work with mod_perl 1.99 in the server config files. The perl
code sample in the document (Apache::exists_config_define("MODPERL2"))
works, but <IfDefine MODPERL2> doesn't.
This is because <IfDefine> interpretation happens as the file is
parsed; mod_perl is defining MODPERL2 in a "pre_config" hook, which
happens after the file has been parsed, but before it has been
processed.
Cheers,
Gary
[ gbenson@redhat.com ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]