Hi Stas,

Am Mittwoch, 11. Februar 2004 02:16 schrieb Stas Bekman:
> > 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.
>

Apache::Request::PageKit is my testclass for the port to MP2. It replaces the 
old Apache::Request and is @ISA=qw/Apache::Request/; 

A:R is unable to use real inherance and forward unknown methods to the 
A:R->env object ( that is in my case Apache::RequestRec ). I think it tests 
the availability of the method before it calls the method with ->can. And for 
that reason it did not find the headers_in method. Since it is not loaded.

But that is untested so far.

> Does it work for you if you use a pure modperl handler/registry script?

More tomorrow; its to late already ( 3:01:33 )

-- 
Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to