Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7.8
-
Fix Version/s: None
-
Component/s: Zend_Json
-
Labels:
Description
Hi,
I'm translating an application to UTF-8 and I have a problem with the Zend_Json::decode().
I've json strings stored in database and they are decoded correctly on my old non UTF8 apache server.
If I run the same code with the same json string on my utf-8 apache config, I have an exception
<b> Fatal error </ b>: Uncaught exception 'Zend_Json_Exception' with message 'Missing "," in object encoding:
I tried to identify the issue and it appears when I activate the option mbstring.func_overload in my httpd.conf.
The json string has been validated by online validators and is correctly parsed by javascript.
Regards
HJ
Is ext/json enabled on your server? i.e., are you using PHP's native JSON support, or ZF's implementation to decode the JSON string? (Zend_Json::decode() proxies to ext/json if it's enabled). This information will allow me to better track down the issue.
If you are not using ext/json, can you attempt to enable it to see if using it solves the issues?