From: Andrea Faulds Date: Fri, 1 Aug 2014 16:01:17 +0000 (+0100) Subject: PHP_INT_MIN and _MAX tests X-Git-Tag: PRE_PHPNG_MERGE~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe894c2154e6b013f0d0b29ca660ad719fd1affe;p=php PHP_INT_MIN and _MAX tests --- diff --git a/tests/lang/constants/PHP_INT_32bit.phpt b/tests/lang/constants/PHP_INT_32bit.phpt new file mode 100644 index 0000000000..0c85d9719b --- /dev/null +++ b/tests/lang/constants/PHP_INT_32bit.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (32-bit) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(-2147483648) +int(2147483647) +int(4) \ No newline at end of file diff --git a/tests/lang/constants/PHP_INT_64bit.phpt b/tests/lang/constants/PHP_INT_64bit.phpt new file mode 100644 index 0000000000..4b7da3a3e9 --- /dev/null +++ b/tests/lang/constants/PHP_INT_64bit.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (64-bit) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(-9223372036854775808) +int(9223372036854775807) +int(8) \ No newline at end of file