gozer 2003/06/05 00:09:20
Modified: . Makefile.PL t/docs/auth .htaccess Log: s/Apache::(OK|DECLINED)/Apache::Constants::$1/g
argh, now that I looked in eagle: ch06, it uses:
PerlAuthenHandler Apache::OK
And it has this footnote:
*Apache::OK is always available, along with B<Apache::DECLINED>, since they are imported from Apache::Constants by Apache.pm at server startup time.
Am I reading the source wrong or is it a typo in the book? Most likely the former.
Revision Changes Path
1.212 +1 -1 modperl/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/modperl/Makefile.PL,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -r1.211 -r1.212
--- Makefile.PL 16 May 2003 13:26:38 -0000 1.211
+++ Makefile.PL 5 Jun 2003 07:09:19 -0000 1.212
@@ -1239,7 +1239,7 @@
open FH, ">$dir/.htaccess";
print FH <<EOF;
$meth_test
-PerlFixupHandler Apache::OK Apache::DECLINED MyClass::method
+PerlFixupHandler Apache::Constants::OK Apache::Constants::DECLINED MyClass::method
EOF
close FH;
}
1.5 +1 -1 modperl/t/docs/auth/.htaccess
Index: .htaccess
===================================================================
RCS file: /home/cvs/modperl/t/docs/auth/.htaccess,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .htaccess 20 Jan 1999 23:16:35 -0000 1.4
+++ .htaccess 5 Jun 2003 07:09:20 -0000 1.5
@@ -2,7 +2,7 @@
AuthName mod_perl
AuthType Basic
PerlAuthenHandler Apache::AuthenTest
-PerlAuthzHandler Apache::OK
+PerlAuthzHandler Apache::Constants::OK
require valid-user
#<Perl>
--
__________________________________________________________________ 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]
