#43372 [Opn->Bgs]: FILTER_VALIDATE_INT returns null for numbers with leading zero(s)
| From: | pajoye@php.net | Date: | Thu, 22 Nov 2007 11:13:09 +0000 |
| Subject: | #43372 [Opn->Bgs]: FILTER_VALIDATE_INT returns null for numbers with leading zero(s) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119950@lists.php.net to get a copy of this message | ||
ID: 43372
Updated by: pajoye@php.net
Reported By: gbml at bravogroup dot org
-Status: Open
+Status: Bogus
Bug Type: Filter related
Operating System: linux
PHP Version: 5.2.5
-Assigned To:
+Assigned To: pajoye
New Comment:
See FILTER_FLAG_ALLOW_OCTAL.
Previous Comments:
------------------------------------------------------------------------
[2007-11-22 10:54:54] gbml at bravogroup dot org
Description:
------------
Filtering input numbers with leading zero(s) and filter
FILTER_VALIDATE_INT does not produce number
Reproduce code:
---------------
// $_POST ["size"] has value "002"
filter_input (INPUT_POST, "size", FILTER_VALIDATE_INT)
Expected result:
----------------
2
Actual result:
--------------
null
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43372&edit=1