On Thu, 24 Aug 2000, Ken Williams wrote:
> Hi all,
>
> It looks like setting Apache->request($r) doesn't work as documented. I
> can't get it to install a subclass of Apache as the request object.
>
> Here's some code in a handler:
> _
> warn "blessing $r into ", __PACKAGE__;
> Apache->request($r = bless { _r => $r});
> warn "\$r is $r";
> warn "Apache->request is ", Apache->request;
> _
>
> And the result in the error logs:
> _
> blessing Apache=SCALAR(0x1401eaeb8) into Apache::Filter at ...
> $r is Apache::Filter=HASH(0x140088028) at ...
> Apache->request is Apache=SCALAR(0x1401fdab8) at ...
> _
>
> Notice that even after I call Apache->request($r), Apache->request still
> returns an object blessed into the 'Apache' class, not the class of the
> object I gave it.
it is broken in this respect, i just added this to ToDo:
- Apache->request($r) digs the request_rec out of $r regardless of the
type/class, e.g. Apache->request(bless {r => $r}, 'My::Apache')
with your PerlRun patch applied, your in no rush to have this fixed,
right?