@@ -146,7 +146,7 @@ static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array,
146
146
add_assoc_bool (array , "iscritical" , (ctrl -> ldctl_iscritical != 0 ));
147
147
}
148
148
149
- // If it is a known oid, parse to values
149
+ /* If it is a known oid, parse to values */
150
150
if (strcmp (ctrl -> ldctl_oid , LDAP_CONTROL_PASSWORDPOLICYRESPONSE ) == 0 ) {
151
151
int expire = 0 , grace = 0 , rc ;
152
152
LDAPPasswordPolicyError pperr ;
@@ -361,8 +361,8 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
361
361
rc = -1 ;
362
362
php_error_docref (NULL , E_WARNING , "Failed to allocate control value" );
363
363
} 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 */
366
366
int success = LDAP_SUCCESS ;
367
367
ldap_set_option (ld , LDAP_OPT_RESULT_CODE , & success );
368
368
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
612
612
return LDAP_SUCCESS ;
613
613
}
614
614
615
- // Failed
615
+ /* Failed */
616
616
* ctrl = NULL ;
617
617
return -1 ;
618
618
}
@@ -1589,7 +1589,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1589
1589
}
1590
1590
1591
1591
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 */
1593
1593
_php_ldap_controls_free (& lserverctrls );
1594
1594
lserverctrls = _php_ldap_controls_from_array (ld -> link , serverctrls );
1595
1595
if (lserverctrls == NULL ) {
0 commit comments