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>2019-03-20 01:27:02 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-03-20 01:27:02 +0300
commita013d2459273b33c6955e1bd356d0be0bf555772 (patch)
tree6b9149c8b85eb51041291e318b6e277ee6f59616 /common.h
parent4601887dad7168f44a12b42f881c240ef3329d7a (diff)
parent3ce9d6b1623be5b29b0a211cdbc69e355a34397d (diff)
Merge branch 'develop' of github.com:phpredis/phpredis into develop
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.h b/common.h
index 23769d5b..caec1fec 100644
--- a/common.h
+++ b/common.h
@@ -275,10 +275,17 @@ typedef struct {
int nb_active;
} ConnectionPool;
+#if (PHP_MAJOR_VERSION < 7)
+typedef struct {
+ zend_object std;
+ RedisSock *sock;
+} redis_object;
+#else
typedef struct {
RedisSock *sock;
zend_object std;
} redis_object;
+#endif
/** Argument info for any function expecting 0 args */
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)