mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/ldap: Remove unnecessary scoping
This commit is contained in:
parent
647c24fb86
commit
5300f38b75
1 changed files with 103 additions and 106 deletions
|
@ -2533,7 +2533,6 @@ PHP_FUNCTION(ldap_modify_batch)
|
|||
VERIFY_LDAP_LINK_CONNECTED(ld);
|
||||
|
||||
/* perform validation */
|
||||
{
|
||||
/* make sure the DN contains no NUL bytes */
|
||||
if (zend_char_has_nul_byte(dn, dn_len)) {
|
||||
zend_argument_value_error(2, "must not contain null bytes");
|
||||
|
@ -2638,7 +2637,6 @@ PHP_FUNCTION(ldap_modify_batch)
|
|||
RETURN_THROWS();
|
||||
}
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
}
|
||||
/* validation was successful */
|
||||
|
||||
/* allocate array of modifications */
|
||||
|
@ -2647,7 +2645,6 @@ PHP_FUNCTION(ldap_modify_batch)
|
|||
|
||||
/* for each modification */
|
||||
zend_ulong modification_index = 0;
|
||||
zval *modification_zv = NULL;
|
||||
ZEND_HASH_FOREACH_NUM_KEY_VAL(modifications, modification_index, modification_zv) {
|
||||
ldap_mods[modification_index] = safe_emalloc(1, sizeof(LDAPMod), 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue