]> granicus.if.org Git - php/commitdiff
Small fix in ext/ldap, Moved vars definitions to the beginning of the block using...
authorCôme Chilliet <mcmic@php.net>
Mon, 10 Jul 2017 09:33:08 +0000 (11:33 +0200)
committerCôme Chilliet <mcmic@php.net>
Mon, 10 Jul 2017 09:33:08 +0000 (11:33 +0200)
ext/ldap/ldap.c

index 9b0edf38303799aee1232f523f3a4e60e87d7f78..98f1b38f0170f94b6256f69d66cbeda7c8396aa6 100644 (file)
@@ -2199,8 +2199,6 @@ PHP_FUNCTION(ldap_sort)
 PHP_FUNCTION(ldap_get_option)
 {
        zval *link, *retval;
-       zval tmp1;
-       int num_entries;
        ldap_linkdata *ld;
        zend_long option;
 
@@ -2348,6 +2346,8 @@ PHP_FUNCTION(ldap_get_option)
        case LDAP_OPT_SERVER_CONTROLS:
        case LDAP_OPT_CLIENT_CONTROLS:
                {
+                       zval tmp1;
+                       int num_entries;
                        LDAPControl **ctrls = NULL, **ctrlp;
 
                        if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) {