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:
authorRemi Collet <remi@remirepo.net>2020-09-14 17:51:32 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2021-08-26 09:52:40 +0300
commitedac508ef5fc0b397f445504c01593b44e001201 (patch)
tree0651b273adfa5dfe6e43d18fcb0c429895e850e1 /redis.c
parented532e9afcfe3c14ff9f75a509fa1160aa1fbbcc (diff)
use stub/arginfo for RedisSentinel
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/redis.c b/redis.c
index ad6acffd..054ed924 100644
--- a/redis.c
+++ b/redis.c
@@ -64,7 +64,6 @@ extern int le_cluster_slot_cache;
extern zend_function_entry redis_array_functions[];
extern zend_function_entry redis_cluster_functions[];
-extern zend_function_entry redis_sentinel_functions[];
int le_redis_pconnect;
@@ -873,7 +872,7 @@ PHP_MINIT_FUNCTION(redis)
redis_cluster_ce->create_object = create_cluster_context;
/* RedisSentinel class */
- INIT_CLASS_ENTRY(redis_sentinel_class_entry, "RedisSentinel", redis_sentinel_functions);
+ INIT_CLASS_ENTRY(redis_sentinel_class_entry, "RedisSentinel", redis_sentinel_get_methods());
redis_sentinel_ce = zend_register_internal_class(&redis_sentinel_class_entry);
redis_sentinel_ce->create_object = create_sentinel_object;
@@ -1080,17 +1079,17 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
}
if (timeout < 0L || timeout > INT_MAX) {
- REDIS_THROW_EXCEPTION("Invalid connect timeout", 0);
+ REDIS_VALUE_EXCEPTION("Invalid connect timeout");
return FAILURE;
}
if (read_timeout < 0L || read_timeout > INT_MAX) {
- REDIS_THROW_EXCEPTION("Invalid read timeout", 0);
+ REDIS_VALUE_EXCEPTION("Invalid read timeout");
return FAILURE;
}
if (retry_interval < 0L || retry_interval > INT_MAX) {
- REDIS_THROW_EXCEPTION("Invalid retry interval", 0);
+ REDIS_VALUE_EXCEPTION("Invalid retry interval");
return FAILURE;
}