diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2018-11-06 19:46:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 19:46:02 +0300 |
commit | 18dc2aacd6ab25c2aaf92a43d32d8eaf4235dcc0 (patch) | |
tree | 42fd0f7d8c63b398948bac19b66096363a19efea /common.h | |
parent | b5093910b94a2795088a8417946b294f9e780087 (diff) |
32bit xclaim fix (#1444)
This should fix the XCLAIM issue on 32-bit PHP installs.
This change will allow the user to pass the XCLAIM TIME option pretty much any way they want (string, long, or float) and it should work. Note that in 32-bit PHP they will only be able to pass exact values <= 2^53 as PHP will use a double precision floating point for integer overflows.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -461,8 +461,10 @@ typedef size_t strlen_t; #ifdef PHP_WIN32 #define PHP_REDIS_API __declspec(dllexport) +#define phpredis_atoi64(p) _atoi64((p)) #else #define PHP_REDIS_API +#define phpredis_atoi64(p) atoll((p)) #endif /* reply types */ |