#46518 [Opn->Fbk]: json_encode return values
| From: | philip@php.net | Date: | Wed, 12 Nov 2008 17:23:18 +0000 |
| Subject: | #46518 [Opn->Fbk]: json_encode return values | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1490@lists.php.net to get a copy of this message | ||
ID: 46518
Updated by: philip@php.net
Reported By: jtaal at eljakim dot nl
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Please clarify what documentation you feel needs updated (and how it
may be worded). Also, I assume you mean json_decode(), right?
And for good measure, the source code:
http://cvs.php.net/viewvc.cgi/php-src/ext/json/json.c?view=markup
Previous Comments:
------------------------------------------------------------------------
[2008-11-07 18:05:08] jtaal at eljakim dot nl
Description:
------------
Please clarify the bogus status on bug report:
http://bugs.php.net/bug.php?id=45989
I'm getting the same results and from the manual it is unclear why this
is expected behaviour.
The returns section on json_encode:
Returns an object or if the optional assoc parameter is TRUE, an
associative array is instead returned.
Clearly (as it is shown in 45989( this function can also return a
string...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46518&edit=1