Geoffrey Young wrote:
You have the API to do that override already. Add as the first line in
your script:

$r = shift; Apache->request($r);


that's not the same.  in mp1 Apache->request is used for pulling $r out of
thin air.  isn't +GlobalRequest for that exact circumstance, allowing you to
get at $r when none is otherwise available to you?

Once you run the above at the very beginning of your script, it'll pull out $r out from thin air from that point on. that's exactly what +GlobalRequest does.


For example you can write:

PerlModule Apache::compat
PerlPostReadRequestHandler 'sub { Apache->request(shift); Apache::DECLINED }'

and it'll be an exact equivalent of:

PerlModule Apache::compat
PerlOptions +GlobalRequest

assuming that none resets PerlPostReadRequestHandler handlers.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to