diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-02-22 23:25:15 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2019-03-19 23:35:41 +0300 |
commit | b826234556be01c2cf9494be9b489bc2443c57f5 (patch) | |
tree | 0d5e865d02575bc0295ca93f9cc10e1253ce348f /common.h | |
parent | c56ffc51b38d27d16760be0d778f50ff5d424b5d (diff) |
Connection limit for pool.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -734,9 +734,21 @@ typedef struct { /* }}} */ typedef struct { + zend_llist list; + 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) |