File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (64-bit)
3
+ --SKIPIF--
4
+ <?php if (PHP_INT_SIZE !== 8 )
5
+ die ("skip this test is for 64-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(-9223372036854775808)
16
+ int(9223372036854775807)
17
+ int(8)
You can’t perform that action at this time.
0 commit comments