@@ -148,7 +148,7 @@ static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array,
148
148
add_assoc_bool (array , "iscritical" , (ctrl -> ldctl_iscritical != 0 ));
149
149
}
150
150
151
- // If it is a known oid, parse to values
151
+ /* If it is a known oid, parse to values */
152
152
if (strcmp (ctrl -> ldctl_oid , LDAP_CONTROL_PASSWORDPOLICYRESPONSE ) == 0 ) {
153
153
int expire = 0 , grace = 0 , rc ;
154
154
LDAPPasswordPolicyError pperr ;
@@ -363,8 +363,8 @@ static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* arra
363
363
rc = -1 ;
364
364
php_error_docref (NULL , E_WARNING , "Failed to allocate control value" );
365
365
} 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 */
368
368
int success = LDAP_SUCCESS ;
369
369
ldap_set_option (ld , LDAP_OPT_RESULT_CODE , & success );
370
370
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
614
614
return LDAP_SUCCESS ;
615
615
}
616
616
617
- // Failed
617
+ /* Failed */
618
618
* ctrl = NULL ;
619
619
return -1 ;
620
620
}
@@ -1598,7 +1598,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1598
1598
}
1599
1599
1600
1600
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 */
1602
1602
_php_ldap_controls_free (& lserverctrls );
1603
1603
lserverctrls = _php_ldap_controls_from_array (ld -> link , serverctrls );
1604
1604
if (lserverctrls == NULL ) {
0 commit comments