#42001 [NEW]: json_encode() does not work on all types

From: Date: Sun, 15 Jul 2007 12:49:46 +0000
Subject: #42001 [NEW]: json_encode() does not work on all types
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377047@lists.php.net to get a copy of this message
From: stefan dot priebsch at e-novative dot de Operating system: irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: json_encode() does not work on all types 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 bug report at http://bugs.php.net/?id=42001&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42001&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42001&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42001&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42001&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42001&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42001&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42001&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42001&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42001&r=support Expected behavior: http://bugs.php.net/fix.php?id=42001&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42001&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42001&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42001&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42001&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42001&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42001&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42001&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42001&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42001&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42001&r=mysqlcfg

« previous php.doc (#969377047) next »