summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Heigl <andreas@heigl.org>2015-06-28 22:42:59 +0200
committerCôme Bernigaud <mcmic@php.net>2015-06-29 11:11:11 +0200
commit85aabd3e8593b9399db49aaeee9808454e811f80 (patch)
treef21d3826643aa7fd2b99410fe415fbf6da17f7bb
parent625dba022c69dc499ecab39801d90baa9fbb2120 (diff)
downloadphp-git-85aabd3e8593b9399db49aaeee9808454e811f80.tar.gz
Adds deprecation-message for ldap_sort
-rw-r--r--ext/ldap/ldap.c2
1 files changed, 2 insertions, 0 deletions
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;
}