1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/standard/tests/serialize/bug23298.phpt
T
2018-10-14 12:07:20 -03:00

14 lines
257 B
PHP

--TEST--
Bug #23298 (serialize() and floats/doubles)
--INI--
serialize_precision=100
--FILE--
<?php
ini_set('precision', 12);
$foo = 1.428571428571428647642857142;
$bar = unserialize(serialize($foo));
var_dump(($foo === $bar));
?>
--EXPECT--
bool(true)