Skip to content

Commit ed8bfcc

Browse files
author
Côme Chilliet
committed
Small fix in ext/ldap, Moved vars definitions to the beginning of the block using them
1 parent 569d164 commit ed8bfcc

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
@@ -2199,8 +2199,6 @@ PHP_FUNCTION(ldap_sort)
21992199
PHP_FUNCTION(ldap_get_option)
22002200
{
22012201
zval *link, *retval;
2202-
zval tmp1;
2203-
int num_entries;
22042202
ldap_linkdata *ld;
22052203
zend_long option;
22062204

@@ -2348,6 +2346,8 @@ PHP_FUNCTION(ldap_get_option)
23482346
case LDAP_OPT_SERVER_CONTROLS:
23492347
case LDAP_OPT_CLIENT_CONTROLS:
23502348
{
2349+
zval tmp1;
2350+
int num_entries;
23512351
LDAPControl **ctrls = NULL, **ctrlp;
23522352

23532353
if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) {

0 commit comments

Comments
 (0)