Annotation of embedaddon/php/Zend/tests/int_underflow_32bit.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: testing integer underflow (32bit)
3: --SKIPIF--
4: <?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
5: --FILE--
6: <?php
7:
8: $doubles = array(
9: -2147483648,
10: -2147483649,
11: -2147483658,
12: -2147483748,
13: -2147484648,
14: );
15:
16: foreach ($doubles as $d) {
17: $l = (int)$d;
18: var_dump($l);
19: }
20:
21: echo "Done\n";
22: ?>
23: --EXPECT--
24: int(-2147483648)
25: int(2147483647)
26: int(2147483638)
27: int(2147483548)
28: int(2147482648)
29: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>