I've been pestering the author of CGI.pm about a symptom I've been
seeing in my error logs.
I've been doing PerlAuthenHandler development with:
CGI.pm-2.56
perl 5.005_03
apache_1.3.9
mod_perl-1.21
under FreeBSD 3.2-STABLE.
My test code only makes use of CGI::Cookie, not CGI.pm directly.
When I set 'PerlWarn On', and get '/' from my server I see this warning:
[Fri Dec 3 22:20:15 1999] [error] Can't call method "register_cleanup"
on an undefined value at /usr/local/apache_1.3.9/lib/perl/CGI.pm
When I fully insert diagnostics like this (in a local copy):
if ($MOD_PERL) {
# the orginal call; this was the offending line
#Apache->request->register_cleanup(\&CGI::_reset_globals);
# my test code
my $g = \&CGI::_reset_globals;
print STDERR "g is [$g (".ref($g).")]\n";
Apache->request->register_cleanup($g) if (ref($g) eq 'CODE');
undef $NPH;
}
When I run this with 'perl -w', I see in my error log:
[Mon Dec 6 15:04:33 1999] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
configured -- resuming normal operations
_reset_globals is [CODE(0x83724a8) (CODE)]
[Mon Dec 6 15:04:34 1999] [error] Can't call method "register_cleanup"
on an undefined value at /usr/local/apache_1.3.9/lib/perl/CGI.pm
line 270.
Does anyone have any input as to what is really happening? This
error is visible even with 'PerlWarn' disabled...
--
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