From 3675f442e413bd864c12787c3b383b110ed26963 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Jul 2022 14:27:20 +0200 Subject: 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 --- redis_sentinel.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'redis_sentinel.c') 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) -- cgit v1.2.3