diff options
author | urfinjuezz <pcmaniac@inbox.ru> | 2018-04-10 00:14:31 +0300 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2018-04-09 14:14:31 -0700 |
commit | d7d863ea077690954494fba168f5aba198a8f41c (patch) | |
tree | d4a6c6aa0813f51ac93c98e239dcbad4ca484a03 /php/src | |
parent | 13e627ad691f7645d03c7552ac469c2988397200 (diff) |
fix json_decode call parameters (#4381)
Diffstat (limited to 'php/src')
-rw-r--r-- | php/src/Google/Protobuf/Internal/Message.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php/src/Google/Protobuf/Internal/Message.php b/php/src/Google/Protobuf/Internal/Message.php index b7f83c57..04ee1c34 100644 --- a/php/src/Google/Protobuf/Internal/Message.php +++ b/php/src/Google/Protobuf/Internal/Message.php @@ -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."); |