
alex at gossamer-threads
Mar 6, 2009, 3:46 PM
Post #5 of 5
(1051 views)
Permalink
|
|
Re: [8451] * Added `Bric::Util::ApacheReq->url` and put it to use in various
[In reply to]
|
|
Hi, On Fri Mar 06 03:24:19, Adrian Yee wrote: > >> Those =='s need to be eq's if *_PORT are '*' (warnings), so here's a > >> patch: > > > > Have you seen warning? The || should short-circuit, so if the ports are > > '', the == will never evaluate. > > Yep, I'm getting: > > Argument "*" isn't numeric in numeric eq (==) at > /home/worldhealth/dev-bricolage/lib/Bric/Util/ApacheReq.pm line 151. > > when mod_perl starts up. Alex believes it's Perl optimizing the *_PORT > constants on compile time (it only happens on start up). Yup, it's a compile time warning, not runtime: alex [at] ale ~ $ perl -wle 'use constant FOO => "*"; exit; (FOO == 80)' Argument "*" isn't numeric in numeric eq (==) at -e line 1. alex [at] ale ~ $ Cheers, Alex -- Alex Krohn <alex [at] gossamer-threads>
|