xref: /php-src/Zend/tests/zend_strtod.phpt (revision a9398056)
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--EXPECT--
15float(-100)
16float(808792757210)
17float(-4.5646456464564635E+27)
18float(-11276204760067310)
19Done
20