You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John ORourke <jo...@o-rourke.org> on 2006/10/25 15:49:10 UTC

getting current phase / PerlOptions in

Hi folks,

I can't find anything in the docs (not really sure what to look for) - I 
want to retrieve the current phase from within a handler.

Basically I'm trying to implement a per-directory PerlOptions type 
directive, so I can turn phase handlers on and off per-directory not 
just per-server.

I'm looking at calling a single method at the top of each handler to see 
if the handler should run, but it would need to say something like

    if ( $r->phase() eq 'Fixup' ) { ...

anyone know how I can get that?

cheers
John