xref: /PHP-7.2/Zend/tests/zend_strtod.phpt (revision 17ccbeec)
1--TEST--
2zend_strtod() leaks on big doubles
3--INI--
4precision=14
5--FILE--
6<?php
7var_dump("1139932690.21688500" - "1139932790.21688500");
8var_dump("1139932690000.21688500" - "331139932790.21688500");
9var_dump("339932690.21688500" - "4564645646456463461139932790.21688500");
10var_dump("123123139932690.21688500" - "11399327900000000.21688500");
11
12echo "Done\n";
13?>
14--EXPECTF--
15float(-100)
16float(808792757210)
17float(-4.5646456464565E+27)
18float(-1.1276204760067E+16)
19Done
20