Skip to content

Commit 8795892

Browse files
committed
Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string "Array")
1 parent 05defb4 commit 8795892

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ PHP NEWS
1111
- CURL:
1212
. Fixed bug #71225 (curl_setopt() fails to set CURLOPT_POSTFIELDS with
1313
reference to CURLFile). (Laruence)
14+
15+
- LDAP:
16+
. Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string
17+
"Array"). (Laruence)
1418

1519
- SPL:
1620
. Fixed bug #71204 (segfault if clean spl_autoload_funcs while autoloading).

ext/ldap/ldap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
14601460

14611461
value = zend_hash_get_current_data(Z_ARRVAL_P(entry));
14621462

1463+
ZVAL_DEREF(value);
14631464
if (Z_TYPE_P(value) != IS_ARRAY) {
14641465
num_values = 1;
14651466
} else {

0 commit comments

Comments
 (0)