diff options
author | Remi Collet <remi@remirepo.net> | 2022-07-18 13:46:09 +0300 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-07-18 14:46:36 +0300 |
commit | a38e08daa1c568a696ea8148aa674a691b20b485 (patch) | |
tree | 43dfe48e2c9a72c0edb5682e52f207ebf51f9819 | |
parent | a7e5ea643a050c8e90f675cbe62d85796001d89f (diff) |
regenerate arginfo using 8.2.0beta1
-rw-r--r-- | library.h | 4 | ||||
-rw-r--r-- | redis.stub.php | 3 | ||||
-rw-r--r-- | redis_arginfo.h | 7 | ||||
-rw-r--r-- | redis_cluster.stub.php | 3 | ||||
-rw-r--r-- | redis_cluster_arginfo.h | 7 | ||||
-rw-r--r-- | redis_cluster_legacy_arginfo.h | 2 | ||||
-rw-r--r-- | redis_legacy_arginfo.h | 2 | ||||
-rw-r--r-- | redis_sentinel.stub.php | 3 | ||||
-rw-r--r-- | redis_sentinel_arginfo.h | 7 | ||||
-rw-r--r-- | redis_sentinel_legacy_arginfo.h | 2 |
10 files changed, 24 insertions, 16 deletions
@@ -35,10 +35,6 @@ #define REDIS_VALUE_EXCEPTION(m) zend_value_error(m) #endif -#if PHP_VERSION_ID < 80200 -#define zend_mark_function_parameter_as_sensitive(a,b,c) -#endif - void redis_register_persistent_resource(zend_string *id, void *ptr, int le_id); void free_reply_callbacks(RedisSock *redis_sock); diff --git a/redis.stub.php b/redis.stub.php index 67db1629..0b7e1776 100644 --- a/redis.stub.php +++ b/redis.stub.php @@ -35,8 +35,7 @@ class Redis { /** @return int|Redis */ public function append(string $key, mixed $value); - /** @sensitive-param $credentials **/ - public function auth(mixed $credentials): bool; + public function auth(#[\SensitiveParameter] mixed $credentials): bool; public function bgSave(): bool; diff --git a/redis_arginfo.h b/redis_arginfo.h index 8dc5a4c3..74cde5dc 100644 --- a/redis_arginfo.h +++ b/redis_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 0e9010a9567392f6f2a8ad7f1f5f09a28a086c45 */ + * Stub hash: 954ed131a20d6939f9653dbc384e6244a0862b6e */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "null") @@ -1448,6 +1448,11 @@ static zend_class_entry *register_class_Redis(void) INIT_CLASS_ENTRY(ce, "Redis", class_Redis_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); +#if (PHP_VERSION_ID >= 80200) + + + zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "auth", sizeof("auth") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0); +#endif return class_entry; } diff --git a/redis_cluster.stub.php b/redis_cluster.stub.php index 3c53d6e9..80461abc 100644 --- a/redis_cluster.stub.php +++ b/redis_cluster.stub.php @@ -8,8 +8,7 @@ class RedisCluster { - /** @sensitive-param $auth **/ - public function __construct(string|null $name, array $seeds = NULL, int|float $timeout = 0, int|float $read_timeout = 0, bool $persistant = false, mixed $auth = NULL, array $context = NULL); + public function __construct(string|null $name, array $seeds = NULL, int|float $timeout = 0, int|float $read_timeout = 0, bool $persistant = false, #[\SensitiveParameter] mixed $auth = NULL, array $context = NULL); public function _compress(string $value): string; diff --git a/redis_cluster_arginfo.h b/redis_cluster_arginfo.h index 24f4ca47..189ff765 100644 --- a/redis_cluster_arginfo.h +++ b/redis_cluster_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 72e55bab630cd2a6dd6620d77e97ec0716d667b1 */ + * Stub hash: 7ff59229ef9ab94d3bb918d666610b70a5676030 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 1) @@ -1238,6 +1238,11 @@ static zend_class_entry *register_class_RedisCluster(void) INIT_CLASS_ENTRY(ce, "RedisCluster", class_RedisCluster_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); +#if (PHP_VERSION_ID >= 80200) + + + zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "__construct", sizeof("__construct") - 1), 5, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0); +#endif return class_entry; } diff --git a/redis_cluster_legacy_arginfo.h b/redis_cluster_legacy_arginfo.h index aec77bf9..0a5d4daa 100644 --- a/redis_cluster_legacy_arginfo.h +++ b/redis_cluster_legacy_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 72e55bab630cd2a6dd6620d77e97ec0716d667b1 */ + * Stub hash: 7ff59229ef9ab94d3bb918d666610b70a5676030 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) diff --git a/redis_legacy_arginfo.h b/redis_legacy_arginfo.h index 83750374..05645b02 100644 --- a/redis_legacy_arginfo.h +++ b/redis_legacy_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 0e9010a9567392f6f2a8ad7f1f5f09a28a086c45 */ + * Stub hash: 954ed131a20d6939f9653dbc384e6244a0862b6e */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) diff --git a/redis_sentinel.stub.php b/redis_sentinel.stub.php index 313040f9..c3fc5a9e 100644 --- a/redis_sentinel.stub.php +++ b/redis_sentinel.stub.php @@ -8,8 +8,7 @@ class RedisSentinel { - /** @sensitive-param $auth **/ - public function __construct(string $host, int $port = 26379, float $timeout = 0, mixed $persistent = NULL, int $retry_interval = 0, float $read_timeout = 0, mixed $auth = NULL); + public function __construct(string $host, int $port = 26379, float $timeout = 0, mixed $persistent = NULL, int $retry_interval = 0, float $read_timeout = 0, #[\SensitiveParameter] mixed $auth = NULL); /** @return bool|RedisSentinel */ public function ckquorum(string $master); diff --git a/redis_sentinel_arginfo.h b/redis_sentinel_arginfo.h index ac951783..58a5bc4c 100644 --- a/redis_sentinel_arginfo.h +++ b/redis_sentinel_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 4e8243076e2c4470473a08456ff20be9f230ee74 */ + * Stub hash: 946942bc5a7612650fc0416902778452f6860d13 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0) @@ -76,6 +76,11 @@ static zend_class_entry *register_class_RedisSentinel(void) INIT_CLASS_ENTRY(ce, "RedisSentinel", class_RedisSentinel_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); +#if (PHP_VERSION_ID >= 80200) + + + zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "__construct", sizeof("__construct") - 1), 6, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0); +#endif return class_entry; } diff --git a/redis_sentinel_legacy_arginfo.h b/redis_sentinel_legacy_arginfo.h index e65d841e..30b58dff 100644 --- a/redis_sentinel_legacy_arginfo.h +++ b/redis_sentinel_legacy_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 4e8243076e2c4470473a08456ff20be9f230ee74 */ + * Stub hash: 946942bc5a7612650fc0416902778452f6860d13 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1) ZEND_ARG_INFO(0, host) |