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

Skip to content

Commit 063b5c1

Browse files
authored
Merge pull request phpredis#1338 from mathroc/patch-1
only the first arg of connect and pconnect is required
2 parents 1689318 + 65cf660 commit 063b5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PHP_INI_BEGIN()
8282
PHP_INI_END()
8383

8484
/** {{{ Argument info for commands in redis 1.0 */
85-
ZEND_BEGIN_ARG_INFO_EX(arginfo_connect, 0, 0, 2)
85+
ZEND_BEGIN_ARG_INFO_EX(arginfo_connect, 0, 0, 1)
8686
ZEND_ARG_INFO(0, host)
8787
ZEND_ARG_INFO(0, port)
8888
ZEND_ARG_INFO(0, timeout)
@@ -122,7 +122,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_slowlog, 0, 0, 1)
122122
ZEND_ARG_INFO(0, option)
123123
ZEND_END_ARG_INFO()
124124

125-
ZEND_BEGIN_ARG_INFO_EX(arginfo_pconnect, 0, 0, 2)
125+
ZEND_BEGIN_ARG_INFO_EX(arginfo_pconnect, 0, 0, 1)
126126
ZEND_ARG_INFO(0, host)
127127
ZEND_ARG_INFO(0, port)
128128
ZEND_ARG_INFO(0, timeout)

0 commit comments

Comments
 (0)