php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug53946.phpt for JSON related Bug #53946Patch version 2011-07-25 06:18 UTC Return to Bug #53946 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: irker@php.net--TEST-- bug #53946 (json_encode() with JSON_UNESCAPED_UNICODE) --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php 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)); ?> --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 >𝄞<"" |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sat Nov 23 10:01:28 2024 UTC |