Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 68975 invoked from network); 8 Nov 2005 16:23:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Nov 2005 16:23:09 -0000 Received: (qmail 15812 invoked by uid 500); 8 Nov 2005 16:22:49 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 15798 invoked by uid 500); 8 Nov 2005 16:22:49 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 15787 invoked by uid 99); 8 Nov 2005 16:22:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2005 08:22:48 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cure@austin.rr.com designates 24.93.47.44 as permitted sender) Received: from [24.93.47.44] (HELO ms-smtp-05-eri0.texas.rr.com) (24.93.47.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2005 08:22:42 -0800 Received: from RAID (cpe-66-68-22-71.austin.res.rr.com [66.68.22.71]) by ms-smtp-05-eri0.texas.rr.com (8.12.10/8.12.7) with ESMTP id jA8GMNB2026114; Tue, 8 Nov 2005 10:22:24 -0600 (CST) Message-Id: <200511081622.jA8GMNB2026114@ms-smtp-05-eri0.texas.rr.com> From: "Paul Harrison" To: "'Enno'" Cc: , Subject: RE: Apache-DBI Date: Tue, 8 Nov 2005 10:22:21 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXkf8qKOnYMWaoYQiORW8sOhihcCgAAJcDg In-Reply-To: <20051108171513.D95573-100000@xs6.xs4all.nl> X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I will try that thxs. On my other box, I have mp2 and p5-Apache-DBI-0.94_1 works just fine. But then again, I don't preload the connections on server startup. Cure -----Original Message----- From: Enno [mailto:burglar@xs4all.nl] Sent: Tuesday, November 08, 2005 10:17 AM To: Paul Harrison Cc: claco@chrislaco.com; modperl@perl.apache.org Subject: RE: Apache-DBI hmmm, dont have any experience with mp1, so I'm guess MOD_PERL_API_VERSION isnt set in it. To fix, change if ($ENV{MOD_PERL_API_VERSION} == 2) { into if (defined $ENV{MOD_PERL_API_VERSION} and $ENV{MOD_PERL_API_VERSION} == 2) { hope this helps. Enno On Tue, 8 Nov 2005, Paul Harrison wrote: > Here's the code form Apache::DBI > > > > Line 211 causing the warning: --> if ($ENV{MOD_PERL_API_VERSION} == 2) { > > > sub connect_on_init { > # provide a handler which creates all connections during server startup > > if ($ENV{MOD_PERL_API_VERSION} == 2) { > if (!@ChildConnect) { > require Apache2::ServerUtil; > my $s = Apache2::ServerUtil->server; > $s->push_handlers(PerlChildInitHandler => \&childinit); > } > } else { > carp "Apache.pm was not loaded\n" and return unless > $INC{'Apache.pm'}; > if (!@ChildConnect and Apache->can('push_handlers')) { > Apache->push_handlers(PerlChildInitHandler => \&childinit); > } > } > > # store connections > push @ChildConnect, [@_]; > } > > > > If the problem is harmless, than no biggie. > > > Cure > > -----Original Message----- > From: Christopher H. Laco [mailto:claco@chrislaco.com] > Sent: Tuesday, November 08, 2005 9:51 AM > To: Paul Harrison > Cc: modperl@perl.apache.org > Subject: Re: Apache-DBI > > Paul Harrison wrote: > > p5-DBD-mysql50-3.0002 > > > > p5-DBI-1.48 > > > > p5-Apache-DBI-0.94_1 > > > > > > > > I upgraded the database server from the "4" version to "5", so I updated > the > > Perl database Drivers -> DBD,DBI, and Apache-DBI. > > > > > > > > Once I updated the software, I get the following text in the Apache error > > log --> > > > > > > > > [Tue Nov 8 10:41:04 2005] DBI.pm: Use of uninitialized value in numeric > eq > > (==) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 211. > > > > [Tue Nov 8 10:41:04 2005] startup.perl: Use of uninitialized value in > > numeric eq (==) at /usr/local/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line > > 35. > > > > > > > > > > > > > > > > Why does this happen? > > > I imagine somewhere in the code, there's something resembling > > eval 'use Apache::BI 0.90'; > > The error is because 0.094_01 can't be used in a numeric comparison like > that. The message itself is harmless I believe and things should still work. > > I had the same problem last night in my test suite when doing: > > eval 'use Catalyst 5.00'; > > when I had a dev version of Catalyst 5.5_03 installed. > > -=Chris > > >