Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 12742
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Non-Numeric MOD_PERL_API_VERSION Not Solved Yet in CGI.pm 3.09
The problem mentioned in CGI.pm 3.09 Changes is not fully solved yet. CGI::Cookies also has the same problem. root@rinse:~# httpd -t Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/5.8.6/CGI/Cookie.pm line 26. Syntax OK root@rinse:~# A patch to fix it is attached.
diff -u -r CGI.pm-3.09.orig/CGI/Cookie.pm CGI.pm-3.09/CGI/Cookie.pm --- CGI.pm-3.09.orig/CGI/Cookie.pm Fri Apr 8 06:40:12 2005 +++ CGI.pm-3.09/CGI/Cookie.pm Tue May 10 22:06:40 2005 @@ -23,7 +23,7 @@ # Turn on special checking for Doug MacEachern's modperl my $MOD_PERL = 0; if (exists $ENV{MOD_PERL}) { - if ($ENV{MOD_PERL_API_VERSION} == 2) { + if (exists $ENV{MOD_PERL_API_VERSION} && $ENV{MOD_PERL_API_VERSION} == 2) { $MOD_PERL = 2; require Apache2::RequestUtil; require APR::Table;
This is fixed in 3.11