mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Bug #49391 ldap.c utilizing deprecated ldap_modify_s
This commit is contained in:
parent
b08e82a736
commit
30b7102746
1
NEWS
1
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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user