Skip to content

Commit

Permalink
Adds deprecation-message for ldap_sort
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas authored and Côme Bernigaud committed Jun 29, 2015
1 parent 625dba0 commit 85aabd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/ldap/ldap.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 85aabd3

Please sign in to comment.