summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-01-01 07:06:58 -0800
committerXinchen Hui <laruence@gmail.com>2016-01-01 07:06:58 -0800
commit87958927b0cef17ba06a8739c7febca8e920c6de (patch)
tree6cb30de09ac83e6d5f9c33fcfb3591b252198560 /ext
parent05defb4f56f30e254eb84b932566c226ec0c1f32 (diff)
downloadphp-git-87958927b0cef17ba06a8739c7febca8e920c6de.tar.gz
Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string "Array")
Diffstat (limited to 'ext')
-rw-r--r--ext/ldap/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index e0faf24b16..b1cb6bf65e 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -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 {