Skip to content

Commit 0d69650

Browse files
committed
Add arginfo for some commands
1 parent 61aba96 commit 0d69650

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

redis.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_key_timestamp, 0, 0, 2)
400400
ZEND_ARG_INFO(0, timestamp)
401401
ZEND_END_ARG_INFO()
402402

403+
ZEND_BEGIN_ARG_INFO_EX(arginfo_watch, 0, 0, 1)
404+
ZEND_ARG_INFO(0, key)
405+
#if PHP_VERSION_ID >= 50600
406+
ZEND_ARG_VARIADIC_INFO(0, other_keys)
407+
#endif
408+
ZEND_END_ARG_INFO()
409+
403410
/**
404411
* Argument info for the SCAN proper
405412
*/
@@ -557,12 +564,12 @@ static zend_function_entry redis_functions[] = {
557564
PHP_ME(Redis, hMget, arginfo_hmget, ZEND_ACC_PUBLIC)
558565
PHP_ME(Redis, hStrLen, arginfo_key_member, ZEND_ACC_PUBLIC)
559566

560-
PHP_ME(Redis, multi, NULL, ZEND_ACC_PUBLIC)
561-
PHP_ME(Redis, discard, NULL, ZEND_ACC_PUBLIC)
562-
PHP_ME(Redis, exec, NULL, ZEND_ACC_PUBLIC)
563-
PHP_ME(Redis, pipeline, NULL, ZEND_ACC_PUBLIC)
564-
PHP_ME(Redis, watch, NULL, ZEND_ACC_PUBLIC)
565-
PHP_ME(Redis, unwatch, NULL, ZEND_ACC_PUBLIC)
567+
PHP_ME(Redis, multi, arginfo_void, ZEND_ACC_PUBLIC)
568+
PHP_ME(Redis, discard, arginfo_void, ZEND_ACC_PUBLIC)
569+
PHP_ME(Redis, exec, arginfo_void, ZEND_ACC_PUBLIC)
570+
PHP_ME(Redis, pipeline, arginfo_void, ZEND_ACC_PUBLIC)
571+
PHP_ME(Redis, watch, arginfo_watch, ZEND_ACC_PUBLIC)
572+
PHP_ME(Redis, unwatch, arginfo_void, ZEND_ACC_PUBLIC)
566573

567574
PHP_ME(Redis, publish, NULL, ZEND_ACC_PUBLIC)
568575
PHP_ME(Redis, subscribe, NULL, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)