Download src/php/php-src/ext/json/tests/bug41034.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug41034.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/bug41034.phpt
-
curl -L -o bug41034.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug41034.phpt
245 Bytes
| --TEST-- | |
| Bug #41034 (json_encode() ignores null byte started keys in arrays) | |
| --FILE-- | |
| echo json_encode(array(0, "\0ab"=>1, "\0null-prefixed value")); | |
| echo "\nDone\n"; | |
| --EXPECT-- | |
| {"0":0,"\u0000ab":1,"1":"\u0000null-prefixed value"} | |
| Done | |