Annotation of embedaddon/php/ext/json/tests/bug41034.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #41034 (json_encode() ignores null byte started keys in arrays)
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("json")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: echo json_encode(array(0,"\0ab"=>1,"\0null-prefixed value"));
                      8: echo "\nDone\n";
                      9: ?>
                     10: --EXPECT--
                     11: {"0":0,"\u0000ab":1,"1":"\u0000null-prefixed value"}
                     12: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>