From d22e7f5a5cb7ebb783b885912b0bf1677c4c74bc Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Tue, 22 Nov 2016 18:05:13 -0800 Subject: Unbreak php7 fix for php <= 7.0 --- cluster_library.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cluster_library.h') 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 */ -- cgit v1.2.3