summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
authorCôme Bernigaud <mcmic@php.net>2015-06-29 14:31:20 +0200
committerCôme Bernigaud <mcmic@php.net>2015-06-29 14:31:20 +0200
commit667e9bd4177e40a52b4f0cd6bfed5737c2694a47 (patch)
treeb9fbf1c42d55bccdee12d3d24b09088fa2a9fca9 /ext/ldap/ldap.c
parent66031cfe199937c6b6e531793a6c655a81da92c4 (diff)
downloadphp-git-667e9bd4177e40a52b4f0cd6bfed5737c2694a47.tar.gz
Deprecating ldap_sort the right way
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 5d47fb6624..a7e7522607 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -2001,8 +2001,6 @@ PHP_FUNCTION(ldap_sort)
size_t sflen;
zend_resource *le;
- php_error_docref(NULL, E_DEPRECATED, "Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions");
-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rrs", &link, &result, &sortfilter, &sflen) != SUCCESS) {
RETURN_FALSE;
}
@@ -3279,7 +3277,7 @@ const zend_function_entry ldap_functions[] = {
PHP_FE(ldap_err2str, arginfo_ldap_err2str)
PHP_FE(ldap_error, arginfo_ldap_resource)
PHP_FE(ldap_compare, arginfo_ldap_compare)
- PHP_FE(ldap_sort, arginfo_ldap_sort)
+ PHP_DEP_FE(ldap_sort, arginfo_ldap_sort)
#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP
PHP_FE(ldap_rename, arginfo_ldap_rename)