mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
14 lines
258 B
PHP
14 lines
258 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)
|