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>2016-11-23 05:05:13 +0300
committermichael-grunder <michael.grunder@gmail.com>2016-11-23 05:05:13 +0300
commitd22e7f5a5cb7ebb783b885912b0bf1677c4c74bc (patch)
tree2de0d64e010f5f0b5ad3a803e82740e6668ec9c0 /cluster_library.h
parent34107966a2a7ddfb6ea5a8a667499b587def7cd3 (diff)
Unbreak php7 fix for php <= 7.0
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cluster_library.h b/cluster_library.h
index 31ad8a5f..4d1d532a 100644
--- a/cluster_library.h
+++ b/cluster_library.h
@@ -173,6 +173,10 @@ typedef struct clusterFoldItem clusterFoldItem;
/* RedisCluster implementation structure */
typedef struct redisCluster {
+#if (PHP_MAJOR_VERSION < 7)
+ zend_object std;
+#endif
+
/* Timeout and read timeout (for normal operations) */
double timeout;
double read_timeout;
@@ -242,8 +246,10 @@ typedef struct redisCluster {
unsigned short redir_slot;
unsigned short redir_port;
+#if (PHP_MAJOR_VERSION >= 7)
/* Zend object handler */
zend_object std;
+#endif
} redisCluster;
/* RedisCluster response processing callback */