Skip to content

Commit c2a4a49

Browse files
committed
Fix GH-18015: Error messages for ldap_mod_replace are confusing
1 parent 3c17d3f commit c2a4a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ldap/ldap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper, int ext)
22782278
ldap_mods[i]->mod_bvalues[0]->bv_len = Z_STRLEN_P(value);
22792279
} else {
22802280
if (!php_ldap_is_numerically_indexed_array(Z_ARRVAL_P(value))) {
2281-
zend_argument_value_error(3, "must be an array with numeric keys");
2281+
zend_argument_value_error(3, "attribute \"%s\" must be an array with numeric keys", ZSTR_VAL(attribute));
22822282
RETVAL_FALSE;
22832283
num_berval[i] = 0;
22842284
num_attribs = i + 1;

0 commit comments

Comments
 (0)