From 30b71027469ed485c4a98531cf04224adc70215d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 30 Aug 2009 15:33:59 +0000 Subject: [PATCH] Bug #49391 ldap.c utilizing deprecated ldap_modify_s --- NEWS | 1 + ext/ldap/ldap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 47079eb97f8..93db3f8793b 100644 --- a/NEWS +++ b/NEWS @@ -27,6 +27,7 @@ PHP NEWS - Fixed memory leak in stream_is_local(). (Felipe, Tony) - Fixed BC break in mime_content_type(), removes the content encoding. (Scott) +- Fixed bug #49391 (ldap.c utilizing deprecated ldap_modify_s). (Ilia) - Fixed bug #49372 (segfault in php_curl_option_curl). (Pierre) - Fixed bug #49306 (inside pdo_mysql default socket settings are ignored). (Ilia) diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 34dedaf7272..2a1b9d12f7b 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -1350,7 +1350,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper) RETVAL_FALSE; } else RETVAL_TRUE; } else { - if ((i = ldap_modify_s(ld->link, dn, ldap_mods)) != LDAP_SUCCESS) { + if ((i = ldap_modify_ext_s(ld->link, dn, ldap_mods, NULL, NULL)) != LDAP_SUCCESS) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Modify: %s", ldap_err2string(i)); RETVAL_FALSE; } else RETVAL_TRUE;