fix json_decode call parameters (#4381)

This commit is contained in:
urfinjuezz 2018-04-10 00:14:31 +03:00 committed by Paul Yang
parent 13e627ad69
commit d7d863ea07

View File

@ -1104,7 +1104,7 @@ class Message
*/
public function parseFromJsonStream($input)
{
$array = json_decode($input->getData(), JSON_BIGINT_AS_STRING);
$array = json_decode($input->getData(), true, 512, JSON_BIGINT_AS_STRING);
if (is_null($array)) {
throw new GPBDecodeException(
"Cannot decode json string.");