From 10d64bd4a9dfc2a10e61a22f5e0bfb25232a01cf Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Mon, 30 Mar 2009 00:41:39 +0000 Subject: [PATCH] MFH Fix test, -2147483648 is a valid unsigned int where -2147483649 isn't. --- ext/filter/tests/046.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/filter/tests/046.phpt b/ext/filter/tests/046.phpt index 390930db35..ef26e17fbf 100755 --- a/ext/filter/tests/046.phpt +++ b/ext/filter/tests/046.phpt @@ -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-- -- 2.50.1