scottmac Mon Mar 30 00:41:40 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/filter/tests 046.phpt
Log:
MFH Fix test, -2147483648 is a valid unsigned int where -2147483649 isn't.
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/046.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/filter/tests/046.phpt
diff -u php-src/ext/filter/tests/046.phpt:1.1.2.1
php-src/ext/filter/tests/046.phpt:1.1.2.2
--- php-src/ext/filter/tests/046.phpt:1.1.2.1 Tue Dec 26 09:16:25 2006
+++ php-src/ext/filter/tests/046.phpt Mon Mar 30 00:41:39 2009
@@ -13,7 +13,7 @@
$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--
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php