Permalink
Browse files

Workaround for json_decode issue with large numbers

  • Loading branch information...
1 parent a7b5fae commit 11b0172d2fba2d846ed91d08cb183c7d3e85a649 Mike Accardo committed Jun 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 MeetupAPIBase.php
View
@@ -255,7 +255,8 @@ protected function initRequest($offset = 0, $request = NULL) {
* @return stdClass
*/
protected function execRequest() {
- $responseData = curl_exec($this->curl);
+ // json_decode cannot handle very large numbers. So the UTC time is shortened.
+ $responseData = preg_replace("/(\d{10})000,/",'$1,',curl_exec($this->curl));
return $responseData;
}

0 comments on commit 11b0172

Please sign in to comment.