We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2bbc6f commit fe894c2Copy full SHA for fe894c2
tests/lang/constants/PHP_INT_32bit.phpt
@@ -0,0 +1,17 @@
1
+--TEST--
2
+Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (32-bit)
3
+--SKIPIF--
4
+<?php if (PHP_INT_SIZE !== 4)
5
+ die("skip this test is for 32-bit platforms only"); ?>
6
+--FILE--
7
+<?php
8
+
9
+var_dump(PHP_INT_MIN);
10
+var_dump(PHP_INT_MAX);
11
+var_dump(PHP_INT_SIZE);
12
13
+?>
14
+--EXPECT--
15
+int(-2147483648)
16
+int(2147483647)
17
+int(4)
tests/lang/constants/PHP_INT_64bit.phpt
+Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (64-bit)
+<?php if (PHP_INT_SIZE !== 8)
+ die("skip this test is for 64-bit platforms only"); ?>
+int(-9223372036854775808)
+int(9223372036854775807)
+int(8)
0 commit comments