1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

MFH Fix test, -2147483648 is a valid unsigned int where -2147483649 isn't.

This commit is contained in:
Scott MacVicar
2009-03-30 00:41:39 +00:00
parent 966e1e6833
commit 10d64bd4a9
+1 -1
View File
@@ -13,7 +13,7 @@ var_dump(filter_var($s, FILTER_VALIDATE_INT));
$s = sprintf("%d", -PHP_INT_MAX);
var_dump(is_long(filter_var($s, FILTER_VALIDATE_INT)));
$s = sprintf("%.0f", -(PHP_INT_MAX+1));
$s = sprintf("%.0f", ~(PHP_INT_MAX)-1);
var_dump(filter_var($s, FILTER_VALIDATE_INT));
?>
--EXPECT--