Fred Moyer  <[EMAIL PROTECTED]> wrote:

> But... once I changed my return codes to allow the other handlers to
> return DECLINED instead of OK in a couple of particular situations,
> push_handlers() behaved as I would have expected it to.  I'm guessing
> that your PerlFixupHandler is set to return OK instead of DECLINED
> somewhere (or maybe not, PerlFixupHandler is RUN_ALL last time I checked).

Yes, I was returning OK, but since the phases are RUN_ALL I didn't think
that would matter.  And, when I register multiple handlers all the same
way, either all in httpd.conf or all with push_handlers, they all run,
even returning OK.

Anyway, I've just changed all my Fixup and HeaderParser handlers to
return DECLINED, and registering them within the code still prevents
ones registered in httpd.conf from running.  I'm registering
HeaderParser handlers from a PostReadRequest handler, and Fixup
handlers from both HeaderParser and PostReadRequest.

> Take a look at
> http://perl.apache.org/docs/2.0/user/handlers/intro.html#Stacked_Handlers

This was what convinced me that it worked the way I thought it worked.

If it's *supposed* to work the way I think it is, then I guess my next
step is to reduce it to a simple test case.

-- 
Jeremy  |  [EMAIL PROTECTED]

Reply via email to