]> granicus.if.org Git - php/commitdiff
Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string "Array")
authorXinchen Hui <laruence@gmail.com>
Fri, 1 Jan 2016 15:06:58 +0000 (07:06 -0800)
committerXinchen Hui <laruence@gmail.com>
Fri, 1 Jan 2016 15:06:58 +0000 (07:06 -0800)
NEWS
ext/ldap/ldap.c

diff --git a/NEWS b/NEWS
index 372f47cdc3e6bc0a7fc1098b5aae65248c8f5dab..d1a82fe2ab4ef36eb23e2846df2bed6e6c255911 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,10 @@ PHP                                                                        NEWS
 - CURL:
   . Fixed bug #71225 (curl_setopt() fails to set CURLOPT_POSTFIELDS with
     reference to CURLFile). (Laruence)
+
+- LDAP:
+  . Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string
+    "Array"). (Laruence)
   
 - SPL:
   . Fixed bug #71204 (segfault if clean spl_autoload_funcs while autoloading).
index e0faf24b160cab2d4c69c94ce23dd5e7b7e437ac..b1cb6bf65e31e0477748c97582ba70de475e0845 100644 (file)
@@ -1460,6 +1460,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
 
                value = zend_hash_get_current_data(Z_ARRVAL_P(entry));
 
+               ZVAL_DEREF(value);
                if (Z_TYPE_P(value) != IS_ARRAY) {
                        num_values = 1;
                } else {