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-16 11:20:17 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2021-08-26 09:53:07 +0300
commit7e621b99da443938ed97d8bba94e3b06a79ea231 (patch)
tree15f5031be6a9b35858cfe9daee51c224c79c97c9 /redis.c
parent10feb234303ea36c203d80bc2d606685456d26e1 (diff)
use zend_parse_parameters_none
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/redis.c b/redis.c
index 054ed924..d8b93287 100644
--- a/redis.c
+++ b/redis.c
@@ -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)