perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject cvs commit: modperl-2.0/lib/Apache compat.pm
Date Tue, 14 Sep 2004 00:08:27 GMT
gozer       2004/09/13 17:08:27

  Modified:    lib/Apache compat.pm
  Log:
  delayed loading of Apache::Module for compat is not necessary
  
  Revision  Changes    Path
  1.121     +1 -2      modperl-2.0/lib/Apache/compat.pm
  
  Index: compat.pm
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/lib/Apache/compat.pm,v
  retrieving revision 1.120
  retrieving revision 1.121
  diff -u -r1.120 -r1.121
  --- compat.pm	14 Sep 2004 00:04:51 -0000	1.120
  +++ compat.pm	14 Sep 2004 00:08:27 -0000	1.121
  @@ -38,6 +38,7 @@
   use Apache::ServerRec ();
   use Apache::ServerUtil ();
   use Apache::Access ();
  +use Apache::Module ();
   use Apache::RequestRec ();
   use Apache::RequestIO ();
   use Apache::RequestUtil ();
  @@ -265,7 +266,6 @@
   }
   
   {
  -    require Apache::Module;
       my $orig_sub = *Apache::Module::top_module{CODE};
       *Apache::Module::top_module = sub {
           $orig_sub->();
  @@ -273,7 +273,6 @@
   }
   
   {
  -    require Apache::Module;
       my $orig_sub = *Apache::Module::get_config{CODE};
       *Apache::Module::get_config = sub {
           shift if $_[0] eq 'Apache::Module';
  
  
  

Mime
View raw message