Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!yojimbo.hack!news.tokachu.com!.POSTED!not-for-mail From: Salvatore Newsgroups: comp.lang.php Subject: Re: bug in is_numeric Date: Sun, 12 May 2013 15:31:10 +0000 (UTC) Organization: Yojimbo NNTP server Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: yojimbo.hack "kq(Iga%czn" X-Complaints-To: usenet(at)tokachu(dot)com User-Agent: slrn/0.9.9p1 (FreeBSD) X-Watermark: "Q(!=B=yUQ}LTp;3#|(F$g-M9aMLE0E)4B#o@!" X-Reader-User: hidden; display="24EEr1QzLVIfRpxx65/wVSkg68k" Xref: csiph.com comp.lang.php:9265 On 2013-05-12, fred wrote: > Using PHP 5.3.6 on win7-74 > > if(is_numeric('x11.11c') returns TRUE > and variations eg: z1111x is also true > > this does not seem right to me. > I've done a search but cant find mention in buglist. > > Perhaps someone more knowledgable can deal with this. > I've tried to mention elsewhere but PHP.net seems to be going > out of its way to make life impossible > You are correct. That parameter, when passed to is_numeric(), should return false. I tried it on Mac OS X and FreeBSD, but not on Windows. Could you try the following code and let me know what comes out? -- Blah blah bleh... GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++