Skip to content

Commit 963b40c

Browse files
committed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/ldap/ldap.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array,
146146
add_assoc_bool(array, "iscritical", (ctrl->ldctl_iscritical != 0));
147147
}
148148

149-
// If it is a known oid, parse to values
149+
/* If it is a known oid, parse to values */
150150
if (strcmp(ctrl->ldctl_oid, LDAP_CONTROL_PASSWORDPOLICYRESPONSE) == 0) {
151151
int expire = 0, grace = 0, rc;
152152
LDAPPasswordPolicyError pperr;
@@ -361,8 +361,8 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
361361
rc = -1;
362362
php_error_docref(NULL, E_WARNING, "Failed to allocate control value");
363363
} else {
364-
// ldap_create_assertion_control_value does not reset ld_errno, we need to do it ourselves
365-
// See http://www.openldap.org/its/index.cgi/Incoming?id=8674
364+
/* ldap_create_assertion_control_value does not reset ld_errno, we need to do it ourselves
365+
See http://www.openldap.org/its/index.cgi/Incoming?id=8674 */
366366
int success = LDAP_SUCCESS;
367367
ldap_set_option(ld, LDAP_OPT_RESULT_CODE, &success);
368368
rc = ldap_create_assertion_control_value(ld, ZSTR_VAL(assert), control_value);
@@ -612,7 +612,7 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
612612
return LDAP_SUCCESS;
613613
}
614614

615-
// Failed
615+
/* Failed */
616616
*ctrl = NULL;
617617
return -1;
618618
}
@@ -1589,7 +1589,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
15891589
}
15901590

15911591
if (argcount > 8) {
1592-
// We have to parse controls again for each link as they use it
1592+
/* We have to parse controls again for each link as they use it */
15931593
_php_ldap_controls_free(&lserverctrls);
15941594
lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls);
15951595
if (lserverctrls == NULL) {

0 commit comments

Comments
 (0)