On Fri, Jan 28, 2000 at 06:46:27PM -0500, Brian Reichert wrote:
> Sorry about the confusing subject line.
> 
> I'm witnessing a symptom:
> 
> Using apache_1.3.9 and mod_perl-1.21 and CGI.pm-2.56 under 3.2-STABLE.

I have an update:  under the above software versions, when I
tightened my handler to this:

-----

sub handler
{
  my $r = shift;

  print STDERR "handler SetLogin: here we go...\n";
  
  print STDERR "uri is ".$r->uri."\n";
  
  $r = Apache->request;
  
  print STDERR "uri is now ".$r->uri."\n";

  return OK;
}

-----

I get the following in my error logs:

  uri is /members/announce.html

  [Mon Jan 31 11:55:57 2000] [error] Can't call method "uri" on an
  undefined value at
  /home/reichert/build/under_CVS/website/lib/perl/Apache/SetLogin.pm
  line 30.

It would seem that I cannot have two references to the request
object.  of course, the Apache module has already handed me one in
@_.  It this a bug in mod_perl?  This behavior certainly isn't
documented...

-- 
Brian 'you Bastard' Reichert            [EMAIL PROTECTED]
37 Crystal Ave. #303                    Daytime number: (781) 899-7484 x704
Derry NH 03038-1713 USA                 Intel architecture: the left-hand path

Reply via email to