Annotation of embedaddon/php/ext/json/tests/bug42090.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #42090 (json_decode causes segmentation fault)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("json")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7: var_dump(
! 8: json_decode('""'),
! 9: json_decode('"..".'),
! 10: json_decode('"'),
! 11: json_decode('""""'),
! 12: json_encode('"'),
! 13: json_decode(json_encode('"')),
! 14: json_decode(json_encode('""'))
! 15: );
! 16: ?>
! 17: --EXPECT--
! 18: string(0) ""
! 19: NULL
! 20: NULL
! 21: NULL
! 22: string(4) ""\"""
! 23: string(1) """
! 24: string(2) """"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>