perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jindo" <ji...@cm1.ethome.net.tw>
Subject $r->prev is always defined
Date Sun, 08 Sep 2002 08:57:08 GMT
Hello,

According to docs, $r->prev returns undef unless there is an internal
redirect.  But to 
my surprises, $r->prev is always defined, severely breaking down the
code/flow logic 
of my scripts.

Here is what I have in /Index.cgi (My browser defaults to that page) for
debugging
$r->log_error($r->prev()->uri());
$r->log_error($r->uri());

Log shows:
[Sat Sep  7 16:35:27 2002] [error] /Index.cgi
[Sat Sep  7 16:35:27 2002] [error] /Index.cgi

$r->prev() DID RETURN undef in the past.  This problem kicked in after I
changed my
server environment which now goes:

RedHat Linux 7.1 (with custom built kernel 2.4.18 SMP)
Perl 5.6.1
Apache 1.3.26 (upgraded from Apache 1.3.24)
mod_perl 1.27 (upgraded from mod_perl 1.26)
mod_gzip 1.3.19a

Has anyone experienced such weird behaviour or is there anything I need
to watch out to correct this problem?

Yours,

Jindo


Mime
View raw message