note 107593 rejected from function.json-encode by tularis
| From: | tularis@php.net | Date: | Mon, 20 Feb 2012 21:04:24 +0000 |
| Subject: | note 107593 rejected from function.json-encode by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186241@lists.php.net to get a copy of this message | ||
Note Submitter: simon dot platten at syrinix dot com
----
Experiencing a really strange problem, using json_encode
As far as I can tell the results from it are correct in Firefox, Opera, Safari and Internet
Explorer.
I'm using it to return an encoded JSON object to a client, the client is written in Javascript
and when it recieves the response the big numbers are not the same as they were on the server for
example if I encode the following:
1329755187235,16944626,66,Hethel Engineering
Centre,sync'd,52.555115,1.179297,84790920,678327360,371890,0,-435.8460651025,0.1952015970400005,0.39737367630004883
What I received at the client is:
1329725609850,335539287,66,Hethel Engineering
Centre,sync'd,52.555000,1.179380,1677057192,13416457536,7355514,0,0.0,0.0,0.0,
This only occurs in IE9, the other browsers received the correct data.