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: 11865
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: LDS [...] cpan.org
Requestors: Bernhard.Schmalhofer [...] biomax.de
Cc:
AdminCc:

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



Subject: mod_perl version detection in CGI::Cookie
Download (untitled) / with headers
text/plain 649b
Hi, I ran into a problem with the mod_perl version detection in CGI::Cookie. I run mod_perl 1.29, but CGI::Cookie assumes mod_perl 2, and thus requires the non-existent Apache::RequestUtil. The culprit seems to be a messed up '=~' in line 29 of CGI/Cookie.pm. --- Cookie.pm.3_0_6 Mon Mar 14 10:45:08 2005 +++ Cookie.pm Mon Mar 14 10:46:01 2005 @@ -26,7 +26,7 @@ eval "require mod_perl"; if (defined $mod_perl::VERSION) { my $float = $mod_perl::VERSION; - $float = ~ s/^.+?([\d.]+).+$/$1/; + $float =~ s/^.+?([\d.]+).+$/$1/; die "mod_perl version: $float"; if ($float >= 1.99) { $MOD_PERL = 2; CU, Bernhard
From: Bernhard.Schmalhofer [...] biomax.de
Download (untitled) / with headers
text/plain 215b
[guest - Mon Mar 14 04:48:0] Sorry, I shouldn't send out patches without testing them. Writing line 29 of CGI::Cookie as: $float =~ s/^.*?([\d.]+).*$/$1/; works at least for mod_perl 1.29. CU, Bernhard
Download (untitled) / with headers
text/plain 516b
Sorry about that. Someone (who shall remain nameless) sent me a mod_perl patch and it included that syntax error. The change will be rolled back in 3.07. Meanwhile, please use 3.04 or earlier. Lincoln [guest - Mon Mar 14 04:59:27 2005]: Show quoted text
> [guest - Mon Mar 14 04:48:0] > > Sorry, I shouldn't send out patches without testing them. > Writing line 29 of CGI::Cookie as: > > $float =~ s/^.*?([\d.]+).*$/$1/; > > works at least for mod_perl 1.29. > > CU, Bernhard > > > > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.