We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30f7ec2 commit 523ec3bCopy full SHA for 523ec3b
1 file changed
ext/ldap/ldap.c
@@ -1485,7 +1485,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1485
LDAPControl **lserverctrls = NULL;
1486
int ldap_attrsonly = 0, ldap_sizelimit = -1, ldap_timelimit = -1, ldap_deref = -1;
1487
int old_ldap_sizelimit = -1, old_ldap_timelimit = -1, old_ldap_deref = -1;
1488
- int ret = 1, argcount = ZEND_NUM_ARGS();
+ int ret = 1;
1489
1490
ZEND_PARSE_PARAMETERS_START(3, 9)
1491
Z_PARAM_ZVAL(link)
@@ -1501,7 +1501,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1501
ZEND_PARSE_PARAMETERS_END();
1502
1503
/* Reverse -> fall through */
1504
- switch (argcount) {
+ switch (ZEND_NUM_ARGS()) {
1505
case 9:
1506
case 8:
1507
ldap_deref = deref;
0 commit comments