php-src/ext/standard/tests/serialize/serialization_precision_002.phpt
2008-03-18 15:11:48 +00:00

21 lines
628 B
PHP

--TEST--
Test serialize_precision (part 2)
--INI--
serialize_precision=75
--FILE--
<?php
/* Prototype : proto string serialize(mixed variable)
* Description: Returns a string representation of variable (which can later be unserialized)
* Source code: ext/standard/var.c
* Alias to functions:
*/
/* Prototype : proto mixed unserialize(string variable_representation)
* Description: Takes a string representation of variable and recreates it
* Source code: ext/standard/var.c
* Alias to functions:
*/
var_dump(serialize(0.1));
?>
--EXPECTF--
string(60) "d:0.1000000000000000055511151231257827021181583404541015625;"