Download src/php/php-src/ext/json/tests/bug53946.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 765 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug53946.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/bug53946.phpt
-
curl -L -o bug53946.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug53946.phpt
765 Bytes
| --TEST-- | |
| bug #53946 (json_encode() with JSON_UNESCAPED_UNICODE) | |
| --FILE-- | |
| var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11E >𝄞<")); | |
| var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11E >𝄞<", JSON_UNESCAPED_UNICODE)); | |
| var_dump(json_encode("ab\xE0")); | |
| var_dump(json_encode("ab\xE0", JSON_UNESCAPED_UNICODE)); | |
| --EXPECT-- | |
| string(156) ""latin 1234 -\/ russian \u043c\u0430\u043c\u0430 \u043c\u044b\u043b\u0430 \u0440\u0430\u043c\u0443 specialchars \u0002 \b \n U+1D11E >\ud834\udd1e<"" | |
| string(100) ""latin 1234 -\/ russian мама мыла раму specialchars \u0002 \b \n U+1D11E >𝄞<"" | |
| bool(false) | |
| bool(false) | |