xref: /php-src/Zend/tests/oct_overflow.phpt (revision f8d79582)
1--TEST--
2testing integer overflow (32bit)
3--INI--
4precision=14
5--FILE--
6<?php
7
8$doubles = array(
9    076545676543223,
10    032325463734,
11    0777777,
12    07777777777777,
13    033333333333333,
14    );
15
16foreach ($doubles as $d) {
17    $l = (double)$d;
18    var_dump($l);
19}
20
21echo "Done\n";
22?>
23--EXPECTF--
24float(4308640384%d)
25float(3545655%d)
26float(262143)
27float(549755813%d)
28float(1884877076%d)
29Done
30