Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2018-11-06 19:46:02 +0300
committerGitHub <noreply@github.com>2018-11-06 19:46:02 +0300
commit18dc2aacd6ab25c2aaf92a43d32d8eaf4235dcc0 (patch)
tree42fd0f7d8c63b398948bac19b66096363a19efea /common.h
parentb5093910b94a2795088a8417946b294f9e780087 (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 0771cfd7..adbe3035 100644
--- a/common.h
+++ b/common.h
@@ -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 */