1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/standard/tests/serialize/bug23298.phpt
T
2020-02-03 22:52:20 +01:00

14 lines
269 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)