From: Andreas Heigl Date: Sun, 28 Jun 2015 20:42:59 +0000 (+0200) Subject: Adds deprecation-message for ldap_sort X-Git-Tag: php-7.1.0alpha3~25^2~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85aabd3e8593b9399db49aaeee9808454e811f80;p=php Adds deprecation-message for ldap_sort --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index a040a0d38c..5d47fb6624 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; }