Edit report at http://pear.php.net/bugs/bug.php?id=18215&edit=1
ID: 18215
Updated by: sumachaa@gmail.com
Reported By: sumachaa at gmail dot com
Summary: Error when using decode for longer strings
-Status: Open
+Status: Closed
Type: Bug
Package: Services_JSON
Operating System: Windows & Linux
Package Version: 1.0.3
PHP Version: 5.2.5
-Assigned To:
+Assigned To: sumachaa
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: sumachaa
working with the latest version
Previous Comments:
------------------------------------------------------------------------
[2011-01-24 09:26:30] sumachaa
Description:
------------
When using the Services_JSON class to decode a JSON string which is big
in length the response is coming as NULL object.
Test script:
---------------
include "JSON.php";
$json = new Services_JSON();
$input = file_get_contents('json.resp.json_1');
$value = $json->decode($input);
var_dump($value);
Expected result:
----------------
the complete list of object from the input
Actual result:
--------------
stdClass Object
(
)
object(stdClass)#2 (0) {
}
------------------------------------------------------------------------