Re: json_encode()
| From: | Richard Quadling | Date: | Wed, 17 Dec 2008 10:05:18 +0000 |
| Subject: | Re: json_encode() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42297@lists.php.net to get a copy of this message | ||
2008/12/16 Robin Burchell <viroteck@viroteck.net>:
> Settings which change behaviour like that aren't really all that fun
> for third party/portable applications developers, e.g. forum software
> and the likes. magic_quotes_gpc and others are good examples of this.
>
> Going back to Rasmus' mail based on his discussion with Douglas, I
> think that option #1 (documenting the way it works, and documenting
> how to do things "properly") sounds perfectly fine.
Ok, I see. Add the optional param to the function and have a one-off
hit to the userland codebase to fix the problem.
So is this going to be 5.3 or 6.0?
Would you expect json_decode() to have the param as well.
Considering json_encode() COULD encode non JSON compliant data, should
json_decode() also decode non JSON compliant data?
Richard.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"