Doc #67599 [Opn->Ana]: case mismatch for json_encode between doc and reality

From: Date: Thu, 10 Jul 2014 07:23:54 +0000
Subject: Doc #67599 [Opn->Ana]: case mismatch for json_encode between doc and reality
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11361@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67599&edit=1 ID: 67599 Updated by: sobak@php.net Reported by: om+bugs dot php dot net at miakinen dot net Summary: case mismatch for json_encode between doc and reality -Status: Open +Status: Analyzed Type: Documentation Problem Package: Documentation problem Operating System: Ubuntu 12.04 (not important) PHP Version: 5.4.30 -Assigned To: +Assigned To: sobak Block user comment: N Private report: N New Comment: On 5.5.6 and 5.4.26 which I have currently available, output is the same as in the manual. Could you provide exact code which gave you result with those characters lowercased? Previous Comments: ------------------------------------------------------------------------ [2014-07-09 20:44:50] om+bugs dot php dot net at miakinen dot net 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 this bug report at https://bugs.php.net/bug.php?id=67599&edit=1

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