Hi Stas,
I tried it and unfortunely it did not work for me. I downloaded the CVS version of modperl-2 and installed your patch.
Thanks for testing it, Boris.
As next step I removed all MP2 use directives.
#use Apache::RequestRec (); #use Apache::RequestIO (); #use Apache::ServerUtil (); #use Apache::RequestUtil (); #use Apache::Util (); #use APR::Date ();
This is the result.
waiting 60 seconds for server to start: ..[Tue Feb 10 17:57:49 2004] [warn] Syntax error at /home/ptest2/src/Apache-PageKit-2.12-5/t/conf/extra.last.conf:15 Can't locate object method "server" via package "Apache" at /home/ptest2/src/Apache-PageKit-2.12-5/blib/lib/Apache/PageKit.pm line 113.
Now I uncomment
use Apache::ServerUtil ();
to get access to the server method.
EazyLife works for objects $r, $s, etc. I don't remember we have covered class methods, but that is fixable. The reason the autoload didn't work here, is that there is no Apache module, and therefore EazyLife didn't add Apache::AUTOLOAD. Depending on the outcomings of the Apache:: namespace extinction process, we may add it manually if it survives.
Now my error message is
Can't locate auto/Apache/Request/PageKit/headers_in.al
So I think Apache::Request use a kind of ->can to check for a method before it forwards it. This makes the EazyLife option useless for me. ( Or I have to support a kind of autoloader or preloader for my class, but that make it useless too. )
I think not. headers_in called on $r should have AUTOLOADED Apache::RequestRec. Now since you call it on Apache::Request::PageKit for some reason it doesn't reach Apache::RequestRec::AUTOLOAD. That's probably a problem in either Apache::Request::PageKit or Apache::Request, with inheritance gone wrong.
Does it work for you if you use a pure modperl handler/registry script?
-- __________________________________________________________________ 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]