#40597 [Opn->Bgs]: FILTER_VALIDATE_INT limited to system's signed integer size
| From: | pajoye@php.net | Date: | Thu, 22 Feb 2007 22:48:08 +0000 |
| Subject: | #40597 [Opn->Bgs]: FILTER_VALIDATE_INT limited to system's signed integer size | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109354@lists.php.net to get a copy of this message | ||
ID: 40597
Updated by: pajoye@php.net
Reported By: mail957253 at lemurtastic dot com
-Status: Open
+Status: Bogus
-Bug Type: Feature/Change Request
+Bug Type: Filter related
Operating System: Windows XP SP2
PHP Version: 5.2.1
-Assigned To:
+Assigned To: pajoye
New Comment:
It returns a PHP integer which is limited to 32bits.
If you like to get a string containing a big integer, you can use the
sanitize rule.
Once PHP has 64bits integer support, it will be available in filter as
well.
Not a bug > bogus.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:36:02] mail957253 at lemurtastic dot com
Description:
------------
FILTER_VALIDATE_INT should validate anything that normal people
consider an integer as such, rather than being limited to what my
computer can store in 32 bits.
Reproduce code:
---------------
filter_var('2147483648', FILTER_VALIDATE_INT);
Expected result:
----------------
returns '2147483648'
Actual result:
--------------
returns FALSE
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40597&edit=1