summaryrefslogtreecommitdiff
path: root/tests/lang/constants/PHP_INT_32bit.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/constants/PHP_INT_32bit.phpt')
-rw-r--r--tests/lang/constants/PHP_INT_32bit.phpt17
1 files changed, 17 insertions, 0 deletions
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--
+<?php if (PHP_INT_SIZE !== 4)
+ die("skip this test is for 32-bit platforms only"); ?>
+--FILE--
+<?php
+
+var_dump(PHP_INT_MIN);
+var_dump(PHP_INT_MAX);
+var_dump(PHP_INT_SIZE);
+
+?>
+--EXPECT--
+int(-2147483648)
+int(2147483647)
+int(4) \ No newline at end of file