com php-src: Small fix in ext/ldap, Moved vars definitions to the beginning of the block using them: ext/ldap/ldap.c

From: Date: Mon, 10 Jul 2017 09:33:08 +0000
Subject: com php-src: Small fix in ext/ldap, Moved vars definitions to the beginning of the block using them: ext/ldap/ldap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98491@lists.php.net to get a copy of this message
Commit: ed8bfcc6ea60c9d5b8c6b10f9e5175237fe28751 Author: Côme Chilliet <mcmic@php.net> Mon, 10 Jul 2017 11:33:08 +0200 Parents: 569d164c4ad37187c3e1e7dc42d736da69f4fdb0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ed8bfcc6ea60c9d5b8c6b10f9e5175237fe28751 Log: Small fix in ext/ldap, Moved vars definitions to the beginning of the block using them Changed paths: M ext/ldap/ldap.c Diff: diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 9b0edf3..98f1b38 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -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) {

« previous php.cvs (#98491) next »