Skip to content

Commit b473c22

Browse files
committed
fix parameter count
1 parent 19a02bb commit b473c22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

php_memcached.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,16 +1875,16 @@ static void php_memc_setMulti_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_ke
18751875
MEMC_METHOD_INIT_VARS;
18761876

18771877
if (by_key) {
1878-
/* "Sa|ll" */
1879-
ZEND_PARSE_PARAMETERS_START(2, 4)
1878+
/* "Sa|l" */
1879+
ZEND_PARSE_PARAMETERS_START(2, 3)
18801880
Z_PARAM_STR(server_key)
18811881
Z_PARAM_ARRAY(entries)
18821882
Z_PARAM_OPTIONAL
18831883
Z_PARAM_LONG(expiration)
18841884
ZEND_PARSE_PARAMETERS_END();
18851885
} else {
1886-
/* "a|ll" */
1887-
ZEND_PARSE_PARAMETERS_START(1, 3)
1886+
/* "a|l" */
1887+
ZEND_PARSE_PARAMETERS_START(1, 2)
18881888
Z_PARAM_ARRAY(entries)
18891889
Z_PARAM_OPTIONAL
18901890
Z_PARAM_LONG(expiration)
@@ -2090,7 +2090,7 @@ static void php_memc_cas_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_key)
20902090

20912091
if (by_key) {
20922092
/* "zSSz|ll" */
2093-
ZEND_PARSE_PARAMETERS_START(4, 6)
2093+
ZEND_PARSE_PARAMETERS_START(4, 4)
20942094
Z_PARAM_ZVAL(zv_cas)
20952095
Z_PARAM_STR(server_key)
20962096
Z_PARAM_STR(key)
@@ -2100,7 +2100,7 @@ static void php_memc_cas_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_key)
21002100
ZEND_PARSE_PARAMETERS_END();
21012101
} else {
21022102
/* "zSz|ll" */
2103-
ZEND_PARSE_PARAMETERS_START(3, 5)
2103+
ZEND_PARSE_PARAMETERS_START(3, 4)
21042104
Z_PARAM_ZVAL(zv_cas)
21052105
Z_PARAM_STR(key)
21062106
Z_PARAM_ZVAL(value)

0 commit comments

Comments
 (0)