From 85aabd3e8593b9399db49aaeee9808454e811f80 Mon Sep 17 00:00:00 2001 From: Andreas Heigl Date: Sun, 28 Jun 2015 22:42:59 +0200 Subject: [PATCH] Adds deprecation-message for ldap_sort --- ext/ldap/ldap.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.40.0