Skip to content

Commit 53fde8b

Browse files
committed
ext/ldap: Remove useless variable
1 parent b5fb955 commit 53fde8b

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
@@ -1485,7 +1485,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
14851485
LDAPControl **lserverctrls = NULL;
14861486
int ldap_attrsonly = 0, ldap_sizelimit = -1, ldap_timelimit = -1, ldap_deref = -1;
14871487
int old_ldap_sizelimit = -1, old_ldap_timelimit = -1, old_ldap_deref = -1;
1488-
int ret = 1, argcount = ZEND_NUM_ARGS();
1488+
int ret = 1;
14891489

14901490
ZEND_PARSE_PARAMETERS_START(3, 9)
14911491
Z_PARAM_ZVAL(link)
@@ -1501,7 +1501,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
15011501
ZEND_PARSE_PARAMETERS_END();
15021502

15031503
/* Reverse -> fall through */
1504-
switch (argcount) {
1504+
switch (ZEND_NUM_ARGS()) {
15051505
case 9:
15061506
case 8:
15071507
ldap_deref = deref;

0 commit comments

Comments
 (0)