diff options
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) |