cvs: php-src(PHP_5_3) /ext/filter/tests 046.phpt
| From: | Scott MacVicar | Date: | Mon, 30 Mar 2009 00:41:09 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/filter/tests 046.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56797@lists.php.net to get a copy of this message | ||
scottmac Mon Mar 30 00:41:09 2009 UTC
Modified files: (Branch: PHP_5_3)
/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.2.1&r2=1.1.2.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.2.1 php-src/ext/filter/tests/046.phpt:1.1.2.1.2.2
--- php-src/ext/filter/tests/046.phpt:1.1.2.1.2.1 Sat May 24 15:22:18 2008
+++ php-src/ext/filter/tests/046.phpt Mon Mar 30 00:41:09 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--