diff options
author | Remi Collet <remi@remirepo.net> | 2020-09-16 11:20:17 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2021-08-26 09:53:07 +0300 |
commit | 7e621b99da443938ed97d8bba94e3b06a79ea231 (patch) | |
tree | 15f5031be6a9b35858cfe9daee51c224c79c97c9 /redis.c | |
parent | 10feb234303ea36c203d80bc2d606685456d26e1 (diff) |
use zend_parse_parameters_none
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -993,7 +993,7 @@ PHP_MINFO_FUNCTION(redis) Public constructor */ PHP_METHOD(Redis, __construct) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } } @@ -1003,7 +1003,7 @@ PHP_METHOD(Redis, __construct) Public Destructor */ PHP_METHOD(Redis,__destruct) { - if(zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } @@ -3532,8 +3532,9 @@ PHP_METHOD(Redis, getAuth) { RedisSock *redis_sock; zval zret; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) + if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; + } redis_sock = redis_sock_get_connected(INTERNAL_FUNCTION_PARAM_PASSTHRU); if (redis_sock == NULL) |