serialization_precision_002.phpt 624 B

123456789101112131415161718192021
  1. --TEST--
  2. Test serialize_precision (part 2)
  3. --INI--
  4. serialize_precision=75
  5. --FILE--
  6. <?php
  7. /* Prototype : proto string serialize(mixed variable)
  8. * Description: Returns a string representation of variable (which can later be unserialized)
  9. * Source code: ext/standard/var.c
  10. * Alias to functions:
  11. */
  12. /* Prototype : proto mixed unserialize(string variable_representation)
  13. * Description: Takes a string representation of variable and recreates it
  14. * Source code: ext/standard/var.c
  15. * Alias to functions:
  16. */
  17. var_dump(serialize(0.1));
  18. ?>
  19. --EXPECT--
  20. string(60) "d:0.1000000000000000055511151231257827021181583404541015625;"