Skip to content

Commit d7d863e

Browse files
urfinjuezzTeBoring
authored andcommitted
fix json_decode call parameters (protocolbuffers#4381)
1 parent 13e627a commit d7d863e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/src/Google/Protobuf/Internal/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ protected function mergeFromJsonArray($array)
11041104
*/
11051105
public function parseFromJsonStream($input)
11061106
{
1107-
$array = json_decode($input->getData(), JSON_BIGINT_AS_STRING);
1107+
$array = json_decode($input->getData(), true, 512, JSON_BIGINT_AS_STRING);
11081108
if (is_null($array)) {
11091109
throw new GPBDecodeException(
11101110
"Cannot decode json string.");

0 commit comments

Comments
 (0)