I ran into this problem and was able to solve it by setting the PHP's
precision setting to 20.  This keeps PHP from displaying floats as
exponents.

ini_set('precision', 20);



On Nov 6, 9:02 am, CWorster <cwors...@schlimmer.com> wrote:
> If you have a sufficient PHP-Version 
> (>=5.3http://www.php.net/manual/en/function.json-decode.php) you can try
> this:
>
> $array = json_decode($json, true, 512, JSON_BIGINT_AS_STRING);
>
> I had no luck on Debian/Squeeze, so I'm using for now this quick & dirty hack:
>
> $array = json_decode(preg_replace('/("\w+"):(\d{6,})/', '${1}:"${2}"',
> $json), true);

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to