Skip to content

Commit 30b44f5

Browse files
committed
[skip ci] ext/ldap: Clean-up comment
1 parent 7c8fea9 commit 30b44f5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ext/ldap/ldap.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,27 +2549,27 @@ PHP_FUNCTION(ldap_modify_batch)
25492549
uint32_t oper;
25502550

25512551
/*
2552-
$mods = array(
2553-
array(
2552+
$mods = [
2553+
[
25542554
"attrib" => "unicodePwd",
25552555
"modtype" => LDAP_MODIFY_BATCH_REMOVE,
2556-
"values" => array($oldpw)
2557-
),
2558-
array(
2556+
"values" => [$old_pwd]
2557+
],
2558+
[
25592559
"attrib" => "unicodePwd",
25602560
"modtype" => LDAP_MODIFY_BATCH_ADD,
2561-
"values" => array($newpw)
2562-
),
2563-
array(
2561+
"values" => [$new_pwd]
2562+
],
2563+
[
25642564
"attrib" => "userPrincipalName",
25652565
"modtype" => LDAP_MODIFY_BATCH_REPLACE,
2566-
"values" => array("janitor@corp.contoso.com")
2567-
),
2568-
array(
2566+
"values" => ["janitor@corp.contoso.com"]
2567+
],
2568+
[
25692569
"attrib" => "userCert",
25702570
"modtype" => LDAP_MODIFY_BATCH_REMOVE_ALL
2571-
)
2572-
);
2571+
],
2572+
];
25732573
*/
25742574

25752575
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Osa/|a!", &link, ldap_link_ce, &dn, &dn_len, &mods, &serverctrls) != SUCCESS) {

0 commit comments

Comments
 (0)