Doc #53106 [Bgs]: error on example

From: Date: Wed, 20 Oct 2010 10:18:22 +0000
Subject: Doc #53106 [Bgs]: error on example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5288@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53106&edit=1 ID: 53106 Updated by: rquadling@php.net Reported by: ar at ailtonribeiro dot com Summary: error on example Status: Bogus Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N New Comment: Added associative array to json_ecode example. http://svn.php.net/viewvc?view=revision&revision=304559 Previous Comments: ------------------------------------------------------------------------ [2010-10-20 02:06:47] kalle@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. The array is still non-associative, but its outputted as an ASSOCIATIVE object. No bug here though ------------------------------------------------------------------------ [2010-10-19 21:16:41] ar at ailtonribeiro dot com Description: ------------ On http://php.net/manual/en/function.json-encode.php there is an error: * Now: The above example will output ... Non-associative array output as array: [[1,2,3]] Non-associative array output as object: {"0":{"0":1,"1":2,"2":3}} * Correcting would be: The above example will output ... Non-associative array output as array: [[1,2,3]] ASSOCIATIVE array output as object: {"0":{"0":1,"1":2,"2":3}} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53106&edit=1

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