On Wed, 1 Aug 2001, Doug MacEachern wrote:

> On Thu, 2 Aug 2001, Stas Bekman wrote:
>
> > Now how do we make sure that Apache::compat is loaded before CGI.pm?
> > Should I put a special case logic into the code that does the actual
> > require to load Apache::compat if CGI.pm is loaded? This won't work from
> > <Perl> sections or startup.pl though.
>
> no, Apache::compat is not just for CGI.pm

so why would this test(s) fail, then? I don't think it was exercising 1.x
compat, or was it?

it just 'use Apache::compat ();' and then tests for $CGI::MOD_PERL. We
could make sure that CGI.pm is reloaded via do()?

Why TestModules/cgi.pm need the Apache::compat part? I thought
TestApache/compat was exercising it.

> > Is the only solution is to document this issue? I'd strive to get it done
> > automatically. What would be the performance hit to always load it no
> > matter, whether you need it or not?
>
> it's not gonna happen automatically without performance hit / bloat.
> unless maybe with a Makefile.PL option that tells modperl to always load
> Apache::compat, as in:
> #ifdef MP_APACHE_COMPAT
>        modperl_require_module("Apache::compat");
> #endif
>
> in any case, the default for compat mode will be off.

What's the conclusion then?

- Put this issue on hold, resolve later
- provide MP_APACHE_COMPAT option
- merely document it

I suppose that it's possible that someone will want to enable
Apache::compat for some specific vhs and not the whole server.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to