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