8000 reducing args passed into json_decode · littlephild/codebird-php@a1e4e6d · GitHub
[go: up one dir, main page]

Skip to content

Commit a1e4e6d

Browse files
committed
reducing args passed into json_decode
1 parent 71135d3 commit a1e4e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codebird.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ protected function _mapFnInlineParams($method, &$apiparams)
10081008
protected function _json_decode($data, $need_array = false)
10091009
{
10101010
if (!(defined('JSON_C_VERSION') && PHP_INT_SIZE > 4)) {
1011-
return json_decode($data, $need_array, 512, JSON_BIGINT_AS_STRING);
1011+
return json_decode($data, $need_array, 512);
10121012
}
10131013
$max_int_length = strlen((string) PHP_INT_MAX) - 1;
10141014
$json_without_bigints = preg_replace('/:\s*(-?\d{'.$max_int_length.',})/', ': "$1"', $data);

0 commit comments

Comments
 (0)
0