bug42090.phpt 364 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #42090 (json_decode causes segmentation fault)
  3. --FILE--
  4. <?php
  5. var_dump(
  6. json_decode('""'),
  7. json_decode('"..".'),
  8. json_decode('"'),
  9. json_decode('""""'),
  10. json_encode('"'),
  11. json_decode(json_encode('"')),
  12. json_decode(json_encode('""'))
  13. );
  14. ?>
  15. --EXPECT--
  16. string(0) ""
  17. NULL
  18. NULL
  19. NULL
  20. string(4) ""\"""
  21. string(1) """
  22. string(2) """"