diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index a040a0d38c39a..5d47fb662407e 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -2001,6 +2001,8 @@ 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; }