Doc #67599 [NEW]: case mismatch for json_encode between doc and reality

From: Date: Wed, 09 Jul 2014 20:44:51 +0000
Subject: Doc #67599 [NEW]: case mismatch for json_encode between doc and reality
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11360@lists.php.net to get a copy of this message
From: om+bugs dot php dot net at miakinen dot net Operating system: Ubuntu 12.04 (not important) PHP version: 5.4.30 Package: Documentation problem Bug Type: Documentation Problem Bug description:case mismatch for json_encode between doc and reality Description: ------------ --- From manual page: http://www.php.net/function.json-encode --- <cit.> Example #2 A json_encode() example showing some options in use ... echo "Tags: ", json_encode($a, JSON_HEX_TAG), "\n"; ... The above example will output: ... Tags: ["\u003Cfoo\u003E","'bar'","\"baz\"","&blong&","\u00e9"] </cit.> Actually, it won't output \u003C and \u003E (upper case) but \u003c and \u003e (lower case). Note that the same bug exists in French, and probably also in other languages. Test script: --------------- The test script is the one given in the documentation. -- Edit bug report at https://bugs.php.net/bug.php?id=67599&edit=1 --

« previous php.doc.bugs (#11360) next »