Nick Tonkin wrote:
On Wed, 12 Mar 2003, Nick Tonkin wrote:

Answering my own question:


Hey all,

I just installed Apache::Status on my 2.0 server. I was disappointed to
find that Apache::compat was loaded (along with _all_ the Apache modules).

I thought it might be some code of mine so I started stripping httpd.conf
and startup.pl. They are almost empty but Apache::compat still loads. Any
clues?


Apache::Status does:
if (eval {require Apache::Request}) {
    $newQ ||= sub { Apache::Request->new(@_) };
}
elsif (eval {require CGI}) {
    $newQ ||= sub { CGI->new; };
}
else {
    die "Need CGI.pm or Apache::Request to operate";
}

And CGI IIRC uses Apache::compat until Stas' patch is applied.

You could use Perl to help you figure out who was loading the module. e.g.:


perl -le '*CORE::GLOBAL::require = sub { warn "require $_[0]\n"; CORE::require(@_)}; require CGI'
require Carp.pm
require CGI/Util.pm
require constant.pm
require overload.pm
require 5.004


(of course needs to be run under mod_perl ;)

Perl is so much fun!

__________________________________________________________________
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