Apache-SSI

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

   attribute of an <!--#include--> tag.


2.12  Mon May 15 18:50:37 EDT 2000
   Don't force content_type to be 'text/html'.  Let the server admin
   decide that in the httpd.conf file.  [danmcc@metro.net (Dan McCormick)]

   Get the port, user, group, and path to httpd from the user at 'perl
   Makefile.PL' time.  This stuff is used during the 'make test' step.
   This module should now behave like Apache::Filter and
   Apache::AuthCookie with respect to those 4 parameters at test time.
   [perrin@primenet.com (Perrin Harkins) and Pin-Chieh.Wang@compaq.com
   (Wang, Pin-Chieh)]


2.11  Sun Feb 20 12:03:38 EST 2000
   - Fixed a bug in which $/ was being set to undef in Perl code called by
     <!--#perl--> directives (wald@library.ho.lucent.com (Robert Waldstein)).

   - To keep compatibility with mod_include, allow <!--#perl sub=Pack--> as
     an abbreviation for <!--#perl sub=Pack::handler-->

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

   '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


 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
L<http://forum.swarthmore.edu/~ken/modules/Apache-AuthCookie/> , which
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.366 second using v1.01-cache-2.11-cpan-4e96b696675 )