dis-bench / src /php /php-src /ext /json /tests /bug41567.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
246 Bytes
--TEST--
Bug #41567 (json_encode() double conversion is inconsistent with PHP)
--INI--
serialize_precision=-1
--FILE--
<?php
$a = json_encode(123456789.12345);
var_dump(json_decode($a));
echo "Done\n";
?>
--EXPECT--
float(123456789.12345)
Done