aboutsummaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to 'php')
-rw-r--r--php/src/Google/Protobuf/Internal/Message.php2
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.");