Skip to content

Commit bd7c0b8

Browse files
Rename "command" command to "rawcommand".
Redis has actually introduced the "command" command, so it would be confusing for phpredis to implement arbitrary command processing as the same function name of an actual Redis command.
1 parent 3edeb29 commit bd7c0b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

php_redis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ PHP_METHOD(Redis, isConnected);
212212
PHP_METHOD(Redis, getPersistentID);
213213
PHP_METHOD(Redis, getAuth);
214214
PHP_METHOD(Redis, getMode);
215-
PHP_METHOD(Redis, command);
215+
PHP_METHOD(Redis, rawCommand);
216216

217217
#ifdef PHP_WIN32
218218
#define PHP_REDIS_API __declspec(dllexport)

redis.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static zend_function_entry redis_functions[] = {
277277
PHP_ME(Redis, slowlog, NULL, ZEND_ACC_PUBLIC)
278278

279279
/* Send a raw command and read raw results */
280-
PHP_ME(Redis, command, NULL, ZEND_ACC_PUBLIC)
280+
PHP_ME(Redis, rawCommand, NULL, ZEND_ACC_PUBLIC)
281281

282282
/* introspection */
283283
PHP_ME(Redis, getHost, NULL, ZEND_ACC_PUBLIC)
@@ -6178,8 +6178,8 @@ PHP_METHOD(Redis, slowlog) {
61786178
REDIS_PROCESS_RESPONSE(redis_read_variant_reply);
61796179
}
61806180

6181-
/* {{{ proto Redis::command(string cmd, arg, arg, arg, ...) }}} */
6182-
PHP_METHOD(Redis, command) {
6181+
/* {{{ proto Redis::rawCommand(string cmd, arg, arg, arg, ...) }}} */
6182+
PHP_METHOD(Redis, rawCommand) {
61836183
zval **z_args;
61846184
RedisSock *redis_sock;
61856185
int argc = ZEND_NUM_ARGS(), i;

0 commit comments

Comments
 (0)