1--TEST--
2testing integer overflow (32bit)
3--INI--
4serialize_precision=14
5--SKIPIF--
6<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
7--FILE--
8<?php
9
10$doubles = array(
11    0x1736123FFFAAA,
12    0XFFFFFFFFFFFFFFFFFF,
13    0xAAAAAAAAAAAAAAEEEEEEEEEBBB,
14    0x66666666666666666777777,
15    );
16
17foreach ($doubles as $d) {
18    $l = $d;
19    var_dump($l);
20}
21
22echo "Done\n";
23?>
24--EXPECTF--
25float(4.0833602971%dE+14)
26float(4.7223664828%dE+21)
27float(1.3521606402%dE+31)
28float(1.9807040628%dE+27)
29Done
30