Skip to content

Commit 9c0c20b

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Don't use C++ style comments
2 parents 64c577a + ae92328 commit 9c0c20b

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
@@ -148,7 +148,7 @@ static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array,
148148
add_assoc_bool(array, "iscritical", (ctrl->ldctl_iscritical != 0));
149149
}
150150

151-
// If it is a known oid, parse to values
151+
/* If it is a known oid, parse to values */
152152
if (strcmp(ctrl->ldctl_oid, LDAP_CONTROL_PASSWORDPOLICYRESPONSE) == 0) {
153153
int expire = 0, grace = 0, rc;
154154
LDAPPasswordPolicyError pperr;
@@ -363,8 +363,8 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
363363
rc = -1;
364364
php_error_docref(NULL, E_WARNING, "Failed to allocate control value");
365365
} else {
366-
// ldap_create_assertion_control_value does not reset ld_errno, we need to do it ourselves
367-
// See http://www.openldap.org/its/index.cgi/Incoming?id=8674
366+
/* ldap_create_assertion_control_value does not reset ld_errno, we need to do it ourselves
367+
See http://www.openldap.org/its/index.cgi/Incoming?id=8674 */
368368
int success = LDAP_SUCCESS;
369369
ldap_set_option(ld, LDAP_OPT_RESULT_CODE, &success);
370370
rc = ldap_create_assertion_control_value(ld, ZSTR_VAL(assert), control_value);
@@ -614,7 +614,7 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
614614
return LDAP_SUCCESS;
615615
}
616616

617-
// Failed
617+
/* Failed */
618618
*ctrl = NULL;
619619
return -1;
620620
}
@@ -1598,7 +1598,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
15981598
}
15991599

16001600
if (argcount > 8) {
1601-
// We have to parse controls again for each link as they use it
1601+
/* We have to parse controls again for each link as they use it */
16021602
_php_ldap_controls_free(&lserverctrls);
16031603
lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls);
16041604
if (lserverctrls == NULL) {

0 commit comments

Comments
 (0)