Return to bug41034.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / json / tests |
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