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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-02-11 10:29:13 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-02-12 07:01:58 +0300
commitfec7a7f3977f751d7c3e9896be8ac2c64e0629e1 (patch)
tree2472e53de82167d327f18013768b52246c594e31 /common.h
parent5ab0e71c7621ab117bff31ab89a2dedab7786f7e (diff)
Add callback parameter to subscribe/psubscribe arginfo.
This PR fixes issue #1504.
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.h b/common.h
index 34f84416..884e9764 100644
--- a/common.h
+++ b/common.h
@@ -535,12 +535,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_object, 0, 0, 2)
ZEND_ARG_INFO(0, key)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_subscribe, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_subscribe, 0, 0, 2)
ZEND_ARG_ARRAY_INFO(0, channels, 0)
+ ZEND_ARG_INFO(0, callback)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_psubscribe, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_psubscribe, 0, 0, 2)
ZEND_ARG_ARRAY_INFO(0, patterns, 0)
+ ZEND_ARG_INFO(0, callback)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_unsubscribe, 0, 0, 1)