diff options
author | 4026 <name4026+github@gmail.com> | 2014-06-18 09:53:55 +0100 |
---|---|---|
committer | 4026 <name4026+github@gmail.com> | 2014-06-18 09:53:55 +0100 |
commit | f4013f88e28b31d852e05fe706fad4d8178d3e75 (patch) | |
tree | 2a6373cab48d06cd2d722b8a6b7b03577c243287 | |
parent | 565b2c617f77de854426207889d55f0d33ea5c8c (diff) | |
download | php-jwt-f4013f88e28b31d852e05fe706fad4d8178d3e75.zip php-jwt-f4013f88e28b31d852e05fe706fad4d8178d3e75.tar.gz php-jwt-f4013f88e28b31d852e05fe706fad4d8178d3e75.tar.bz2 |
Correcting the bigint fix to produce objects rather than associative arrays in php versions < 5.4.0.
-rw-r--r-- | Authentication/JWT.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php index 1382780..d0b71b9 100644 --- a/Authentication/JWT.php +++ b/Authentication/JWT.php @@ -137,7 +137,7 @@ class JWT */ $max_int_length = strlen((string) PHP_INT_MAX) - 1; $json_without_bigints = preg_replace('/:\s*(\d{'.$max_int_length.',})/', ': "$1"', $input); - $obj = json_decode($json_without_bigints, true); + $obj = json_decode($json_without_bigints); } if (function_exists('json_last_error') && $errno = json_last_error()) { |