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>2022-07-04 15:27:20 +0300
committerRemi Collet <remi@php.net>2022-07-18 14:45:45 +0300
commit3675f442e413bd864c12787c3b383b110ed26963 (patch)
treeeb67a42747b288260f88fd87db18dc36f42d7ddb /redis_sentinel.c
parent0f1ca0ccf815352d79e716dac49b854491ecc994 (diff)
mark auth param as sensitive for PHP 8.2
refactor MINIT (split in each class sources file) use @generate-class-entries in stub files add RedisException and RedisClusterException in stub files
Diffstat (limited to 'redis_sentinel.c')
-rw-r--r--redis_sentinel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/redis_sentinel.c b/redis_sentinel.c
index 632975cd..5aa44420 100644
--- a/redis_sentinel.c
+++ b/redis_sentinel.c
@@ -26,12 +26,17 @@ extern zend_class_entry *redis_exception_ce;
#if PHP_VERSION_ID < 80000
#include "redis_sentinel_legacy_arginfo.h"
#else
+#include "zend_attributes.h"
#include "redis_sentinel_arginfo.h"
#endif
-extern const zend_function_entry *redis_sentinel_get_methods(void)
+PHP_MINIT_FUNCTION(redis_sentinel)
{
- return class_RedisSentinel_methods;
+ /* RedisSentinel class */
+ redis_sentinel_ce = register_class_RedisSentinel();
+ redis_sentinel_ce->create_object = create_sentinel_object;
+
+ return SUCCESS;
}
PHP_METHOD(RedisSentinel, __construct)