mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
11 lines
245 B
PHP
11 lines
245 B
PHP
--TEST--
|
|
Bug #41034 (json_encode() ignores null byte started keys in arrays)
|
|
--FILE--
|
|
<?php
|
|
echo json_encode(array(0, "\0ab"=>1, "\0null-prefixed value"));
|
|
echo "\nDone\n";
|
|
?>
|
|
--EXPECT--
|
|
{"0":0,"\u0000ab":1,"1":"\u0000null-prefixed value"}
|
|
Done
|