#42001 [Opn->Bgs]: json_encode() does not work on all types

From: Date: Mon, 16 Jul 2007 09:06:16 +0000
Subject: #42001 [Opn->Bgs]: json_encode() does not work on all types
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377050@lists.php.net to get a copy of this message
ID: 42001 Updated by: tony2001@php.net Reported By: stefan dot priebsch at e-novative dot de -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: irrelevant PHP Version: Irrelevant New Comment: Please read the explanation in the original report, there is nothing wrong in the docs. Previous Comments: ------------------------------------------------------------------------ [2007-07-15 12:49:45] stefan dot priebsch at e-novative dot de Description: ------------ The manual entry for json_encode() says the function works on any type except a resource. This is not accurate. json_encode() does not work properly on SimpleXML data that contains CDATA (see bug#41976). Documentation should be changed to reflect this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42001&edit=1

« previous php.doc (#969377050) next »