Stas Bekman wrote:
Yes, sorry, it's $r->prev(), was writing from memory...
Got cha. Just wanted to make sure it wasn't something unexplained.
Your handler doesn't redirect, but Apache does / -> /index.tt is a
subrequest.
Right. I was afraid that it was *supposed* to be accessible via
$r->main()
Eric Sammer wrote:
Stas Bekman wrote:
You have this problem when running a sub-request. In which case you
need to do:
my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo');
http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main
http://perl.apache.org/docs/1.0/guide/snippets.h
Stas Bekman wrote:
You have this problem when running a sub-request. In which case you need
to do:
my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo');
http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main
http://perl.apache.org/docs/1.0/guide/snippets.html#Passing_Notes_Be
Eric Sammer wrote:
All:
Apache 1.3.28, MP 1.29, Perl 5.8.0
I'm having a problem with $r being different between request phases of
the same request. Specifically, $r->pnotes() is missing a parameter that
is packed into it by an earlier handler. Here's the setup:
In virtual host context:
PerlIn
Eric Sammer wrote:
I'm sure I can solve the problem by moving the PerlInitHandler handler
to something post-uri-translate.
I was wrong. Moving the handler to a Perl*Handler that takes place after
PerlTransHandler does not fix the problem. I have to admit defeat. If
anyone is aware of a fix for this
I apologize for bad form replying to my own message...
I found the $r is different because the file being processed by the
Files PerlHandler was an index page and was being accessed via '/'
(rather than '/index.tt'). When accessed as '/index.tt' $r->pnotes() is
populated as expected.
I'm sure I ca
All:
Apache 1.3.28, MP 1.29, Perl 5.8.0
I'm having a problem with $r being different between request phases of
the same request. Specifically, $r->pnotes() is missing a parameter that
is packed into it by an earlier handler. Here's the setup:
In virtual host context:
PerlInitHandler - Does so