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-01-27 07:04:23 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-01-27 07:57:16 +0300
commitf9928642b5e539bbdca43ec51ed9c9642cb42ded (patch)
treea83d33c9ffe0b8fe544942419db8365d04de7d26 /redis_array.h
parent627be58e7386b611e5db63c38362c04a2791d656 (diff)
PHP 5 is dead, long live PHP 7
This commit removes support for PHP 5 by getting rid of all of our Zend compatibility layer methods, as well as any call checking against PHP_MAJOR_VERSION or ZEND_MODULE_API_NO. Unit tests are all passing for Redis, RedisCluster, and RedisArray but this should still be considered a work in progress until more testing can be done. Addresses issue #1448
Diffstat (limited to 'redis_array.h')
-rw-r--r--redis_array.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/redis_array.h b/redis_array.h
index de444654..1ee192fa 100644
--- a/redis_array.h
+++ b/redis_array.h
@@ -49,7 +49,6 @@ typedef struct {
} Continuum;
typedef struct RedisArray_ {
-
int count;
zend_string **hosts; /* array of host:port strings */
zval *redis; /* array of Redis instances */
@@ -67,13 +66,7 @@ typedef struct RedisArray_ {
struct RedisArray_ *prev;
} RedisArray;
-#if (PHP_MAJOR_VERSION < 7)
-zend_object_value create_redis_array_object(zend_class_entry *ce TSRMLS_DC);
-void free_redis_array_object(void *object TSRMLS_DC);
-#else
zend_object *create_redis_array_object(zend_class_entry *ce TSRMLS_DC);
void free_redis_array_object(zend_object *object);
-#endif
-
#endif