Apache-Compress

 view release on metacpan or  search on metacpan

t/lib/Apache/test.pm  view on Meta::CPAN

256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
   'Apache::Table' => sub {
       if ($ENV{MOD_PERL}) {
           return Apache::Table->can('TIEHASH');
       }
       else {
           return $net::callback_hooks{PERL_TABLE_API};
       }
   },
);
 
for (qw(Apache::Cookie Apache::Request)) {
    $really_have{$_} = $really_have{'Apache::Table'};
}
 
sub have_module {
    my $mod = shift;
    my $v = shift;
    eval {# surpress "can't boostrap" warnings
         local $SIG{__WARN__} = sub {};
         require Apache;
         require Apache::Constants;

t/lib/Apache/test.pm  view on Meta::CPAN

639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
 Example: $mods = Apache::test->static_modules('/path/to/httpd');
 
This method returns a hashref whose keys are all the modules
statically compiled into the given httpd binary.  The corresponding
values are all 1.
 
=head1 EXAMPLES
 
No good examples yet.  Example submissions are welcome.  In the meantime, see
I'm retrofitting to use Apache::test.
 
=head1 TO DO
 
The MM_test method doesn't try to be very smart, it just writes the
text that seems to work in my configuration.  I am morally against
using the 'make' command for installing Perl modules (though of course
I do it anyway), so I haven't looked into this very much.  Send bug
reports or better (patches).
 
I've got lots of code in my Apache::AuthCookie module (etc.) that
assists in actually making the queries of the running server.  I plan
to add that to this module, but first I need to compare what's already
here that does the same stuff.
 
=head1 KUDOS
 
To Doug MacEachern for writing the first version of this module.
 
To caelum@debian.org (Rafael Kitover) for contributing the code to
parse existing httpd.conf files for --enable-shared=max and DSOs.



( run in 0.299 second using v1.01-cache-2.11-cpan-1dc43b0fbd2 )