summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Authentication/JWT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php
index cd72a74..0d226f4 100644
--- a/Authentication/JWT.php
+++ b/Authentication/JWT.php
@@ -130,7 +130,7 @@ class JWT
*/
public static function jsonDecode($input)
{
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ if (version_compare(PHP_VERSION, '5.4.0', '>=') and defined('JSON_BIGINT_AS_STRING')) {
/* In PHP >=5.4.0, json_decode() accepts an options parameter, that allows you to specify that large ints (like Steam
* Transaction IDs) should be treated as strings, rather than the PHP default behaviour of converting them to floats.
*/