Hi, I was thinking, should apreq add something to mimic mp2's
ModPerl::MethodLookup::preload_all_modules();
I don't know what namespace I'd put it in, but it would do the
equivalent for these:
use APR::Request ();
use APR::Request::Apache2 ();
use APR::Request::CGI ();
use APR::Request::Cookie ();
use APR::Request::Error ();
use APR::Request::Hook ();
use APR::Request::Param ();
use APR::Request::Parser ();
use Apache2::Upload ();
use Apache2::Request ();
use Apache2::Cookie ();
Also, I've noticed a bug... which I'll look at EVENTUALLY, but incase
someone beats me:
sub handler {
my $r = shift;
my $jar = Apache2::Cookie::Jar->new($r);
my $login = $jar->cookies('login');
if ($login) {
$login->expires('-1d');
# this works if I uncomment it
# $r->err_headers_out->add('Set-Cookie' => $login->as_string);
# this breaks error below
$login->bake(); ## XXX: libapreq svn(2.07-dev) bug
}
$r->headers_out->set(Location => ISST::Const::URL_ISST);
return Apache2::Const::REDIRECT;
}
[EMAIL PROTECTED] /home/pgollucci/isst/lib/ISST 639>[Fri Jan
06 13:11:08 2006] [error] [client ::1] Can't call method
"err_headers_out" on an undefined value at
/usr/home/pgollucci/dev/apps-3.4.4/perl/5.8.7/lib/Apache2/Cookie.pm line 83.
at /home/pgollucci/isst/conf/startup.pl line 76
main::__ANON__('Can\'t call method "err_headers_out" on an
undefined value at...') called at
/usr/home/pgollucci/dev/apps-3.4.4/perl/5.8.7/lib/Apache2/Cookie.pm line 83
Apache2::Cookie::bake('Apache2::Cookie=SCALAR(0x87d3624)')
called at /home/pgollucci/isst/lib/ISST/Logout.pm line 32
ISST::Logout::handler('Apache2::RequestRec=SCALAR(0x81c533c)')
called at -e line 0
eval {...} called at -e line 0
, referer: http://localhost:6055/timeline/intro
--
------------------------------------------------------------------------
"Love is not the one you can picture yourself marrying,
but the one you can't picture the rest of your life without."
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
"I wanna hold ya till I die ... I wanna hold ya till the fear in me
subsides."
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F