Re: [mp2] Ported 3rd-party Modules
[prev]
[thread]
[next]
[Date index for 2004/12/09]
John D Groenveld wrote:
> <URL:http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status>
> I've updated Apache::AuthenURL and Apache::DBILogin for mod_perl2.
just a few notes:
return MP2 ? Apache::OK : Apache::Constants::OK;
if you don't use the -compile option to Apache::Const then these can both
just be OK (and the same with the other constants), which would make things
a bit easier on you.
my $user = MP2 ? $r->user : $r->connection->user;
the $r->user alias to $r->connection->user has been available in mp1 since
1.24_01 (october 2000), which is another way to simplify things a bit.
HTH
--Geoff
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
 |
 |
Re: [mp2] Ported 3rd-party Modules
Geoffrey Young 02:34 on 09 Dec 2004
|