That should be ModPerl::Util::current_callback for 2.0. -----Original Message----- From: Adam Prime x443 Sent: Wednesday, October 25, 2006 10:54 AM To: John ORourke; mod_perl List Subject: RE: getting current phase / PerlOptions in <Location>
$r->current_callback() in 1.3. (thanks geoff/mpcookbook) Modperl::current_callback() in 2.0. (thanks google) returns 'PerlAccessHandler' or similiar. -----Original Message----- From: John ORourke [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 9:49 AM To: mod_perl List Subject: getting current phase / PerlOptions in <Location> 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