We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9c72f commit 6717947Copy full SHA for 6717947
NEWS
@@ -39,6 +39,10 @@ PHP NEWS
39
. Fixed bug GH-17984 (calls with arguments as array with references).
40
(David Carlier)
41
42
+- LDAP:
43
+ . Fixed bug GH-18015 (Error messages for ldap_mod_replace are confusing).
44
+ (nielsdos)
45
+
46
- Mbstring:
47
. Fixed bug GH-17989 (mb_output_handler crash with unset
48
http_output_conv_mimetypes). (nielsdos)
ext/ldap/ldap.c
@@ -2278,7 +2278,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper, int ext)
2278
ldap_mods[i]->mod_bvalues[0]->bv_len = Z_STRLEN_P(value);
2279
} else {
2280
if (!php_ldap_is_numerically_indexed_array(Z_ARRVAL_P(value))) {
2281
- zend_argument_value_error(3, "must be an array with numeric keys");
+ zend_argument_value_error(3, "attribute \"%s\" must be an array with numeric keys", ZSTR_VAL(attribute));
2282
RETVAL_FALSE;
2283
num_berval[i] = 0;
2284
num_attribs = i + 1;
ext/ldap/tests/ldap_add_error.phpt
@@ -104,7 +104,7 @@ Warning: ldap_add(): Add: Already exists in %s on line %d
104
bool(false)
105
string(14) "Already exists"
106
int(68)
107
-ldap_add(): Argument #3 ($entry) must be an array with numeric keys
+ldap_add(): Argument #3 ($entry) attribute "objectdiff-ff1d5879b5ede105769d77c6e9242b83b2de0751065f2ce46cf391110bed3ed1-108-108-0" data-selected="false" role="gridcell" tabindex="-1">108
108
109
Warning: ldap_add(): Add: Undefined attribute type in %s on line %d
110
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments