Skip to content

Commit b651de7

Browse files
committed
ext/ldap: Remove useless variable
1 parent 88887aa commit b651de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ldap/ldap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
14801480
LDAPControl **lserverctrls = NULL;
14811481
int ldap_attrsonly = 0, ldap_sizelimit = -1, ldap_timelimit = -1, ldap_deref = -1;
14821482
int old_ldap_sizelimit = -1, old_ldap_timelimit = -1, old_ldap_deref = -1;
1483-
int ret = 1, argcount = ZEND_NUM_ARGS();
1483+
int ret = 1;
14841484

14851485
ZEND_PARSE_PARAMETERS_START(3, 9)
14861486
Z_PARAM_ZVAL(link)
@@ -1496,7 +1496,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
14961496
ZEND_PARSE_PARAMETERS_END();
14971497

14981498
/* Reverse -> fall through */
1499-
switch (argcount) {
1499+
switch (ZEND_NUM_ARGS()) {
15001500
case 9:
15011501
case 8:
15021502
ldap_deref = deref;

0 commit comments

Comments
 (0)