From: for-bugs at hnw dot jp
Operating system: any
PHP version: 5.2.9
PHP Bug Type: Filter related
Bug description: FILTER_VALIDATE_INT doesn't allow minimum integer
Description:
------------
Although -2147483648 is the minimum integer in 32bit environment,
FILTER_VALIDATE_INT says -2147483648 is invalid as integer.
Reproduce code:
---------------
<?php
var_dump(intval("-2147483648"));
var_dump(filter_var("-2147483648", FILTER_VALIDATE_INT));
Expected result:
----------------
int(-2147483648)
int(-2147483648)
Actual result:
--------------
int(-2147483648)
bool(false)
--
Edit bug report at http://bugs.php.net/?id=47745&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47745&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47745&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47745&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47745&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47745&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47745&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47745&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47745&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47745&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47745&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47745&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47745&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47745&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47745&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47745&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47745&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47745&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47745&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47745&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47745&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47745&r=mysqlcfg