Re: Re: is_int/is_numeric possible bug
| From: | Stefan Esser | Date: | Tue, 29 Nov 2005 17:51:45 +0000 |
| Subject: | Re: Re: is_int/is_numeric possible bug | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20854@lists.php.net to get a copy of this message | ||
Please move the discussion to php general mailinglist. This is a
usererror, a misunderstanding of is_int vs. is_numeric.
The documentation clearly states, that
is_numeric - Finds whether a variable is a number or a numeric string
is_int - Find whether a variable is an integer
anything within $_REQUEST is a string. Documentation clearly says that
is_int will return false, because a string is not an integer. is_numeric
will return true, because it is a numeric string.
Stefan
--
--------------------------------------------------------------------------
Stefan Esser sesser@php.net
Hardened-PHP Project http://www.hardened-php.net/
GPG-Key gpg --keyserver pgp.mit.edu --recv-key 0x15ABDA78
Key fingerprint 7806 58C8 CFA8 CE4A 1C2C 57DD 4AE1 795E 15AB DA78
--------------------------------------------------------------------------