mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
12 lines
297 B
Plaintext
12 lines
297 B
Plaintext
|
--TEST--
|
|||
|
Bug #41034 (json_encode() ignores null byte started keys in arrays)
|
|||
|
--SKIPIF--
|
|||
|
<?php if (!extension_loaded("json")) print "skip"; ?>
|
|||
|
--FILE--
|
|||
|
<?php
|
|||
|
echo json_encode(array(0,"\0ab"=>1,"\0null-prefixed value"));
|
|||
|
echo "\nDone\n";
|
|||
|
?>
|
|||
|
--EXPECT--
|
|||
|
{"0":0," |