Re: is_int/is_numeric possible bug

From: Date: Tue, 29 Nov 2005 16:37:26 +0000
Subject: Re: is_int/is_numeric possible bug
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-20842@lists.php.net to get a copy of this message
Gareth Ardron wrote: > Hi. > > Think I've just stumbled upon a possible bug with is_int. Hello Gareth, if I'm not mistaken, $_REQUEST['days'] is a string, and unless you use if (!is_int(intval($_REQUEST['days'])) || $_REQUEST['days'] < 0) { I see no problem in is_int taking a string with numerals inside as not int. Greetings, Florian

« previous php.internals (#20842) next »