> -----Original Message-----
> From: Christian Gilmore [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 26, 2000 2:52 PM
> To: 'Geoffrey Young'
> Cc: [EMAIL PROTECTED]
> Subject: RE: set_handlers() bug?
> 
> 
> > >   $r->set_handlers(PerlAuthzHandler =>
> > > [\&Tivoli::Apache::AuthzCache, \&OK]);
> 
> > > [Mon Jun 26 10:30:58 2000] [debug]
> > > /opt/apache/dw3.tivoli.com/81/lib/perl/Tivoli/Apache/AuthzCach
> > > e.pm(140):
> > > [client 146.84.34.143] handler: (Post) PerlAuthzHandler
> > > CODE(0x4a3a00) next
> > > in line
> > > [Mon Jun 26 10:30:58 2000] [debug]
> > > /opt/apache/dw3.tivoli.com/81/lib/perl/Tivoli/Apache/AuthzCach
> > > e.pm(140):
> > > [client 146.84.34.143] handler: (Post) PerlAuthzHandler
> > > CODE(0x1840c4) next
> > > in line
> 
> > I don't think that you're getting garbage - the CODE section
> > is the [\&OK] coderef you set earlier...
> 
> I actually reset the handler to include both AuthzCache and 
> OK (see first
> line above). So, shouldn't at least the first handler 
> (AuthzCache) come out
> from get_handlers in a readable format? It and the other two 
> handlers come
> out readable from the initial get_handlers before I call set_handlers.

you're passing a coderef when you use \&Tivoli::Apache::AuthzCache

try $r->set_handlers(PerlAuthzHandler => ['Tivoli::Apache::AuthzCache',
\&OK]);

and you should see what you expect...

I know calling it that way isn't in the eagle book, but it works.  I
suppose, though, that we ought to stick to the official API and only pass an
arrayref consisting of coderefs...

--Geoff

> 
> Regards,
> Christian
> 

Reply via email to