Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0653ff3

Browse files
committed
Add callback parameter to subscribe/psubscribe arginfo.
This PR fixes issue #1504.
1 parent b00060c commit 0653ff3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

common.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_object, 0, 0, 2)
10101010
ZEND_ARG_INFO(0, key)
10111011
ZEND_END_ARG_INFO()
10121012

1013-
ZEND_BEGIN_ARG_INFO_EX(arginfo_subscribe, 0, 0, 1)
1013+
ZEND_BEGIN_ARG_INFO_EX(arginfo_subscribe, 0, 0, 2)
10141014
ZEND_ARG_ARRAY_INFO(0, channels, 0)
1015+
ZEND_ARG_INFO(0, callback)
10151016
ZEND_END_ARG_INFO()
10161017

1017-
ZEND_BEGIN_ARG_INFO_EX(arginfo_psubscribe, 0, 0, 1)
1018+
ZEND_BEGIN_ARG_INFO_EX(arginfo_psubscribe, 0, 0, 2)
10181019
ZEND_ARG_ARRAY_INFO(0, patterns, 0)
1020+
ZEND_ARG_INFO(0, callback)
10191021
ZEND_END_ARG_INFO()
10201022

10211023
ZEND_BEGIN_ARG_INFO_EX(arginfo_unsubscribe, 0, 0, 1)

0 commit comments

Comments
 (0)