]> granicus.if.org Git - php/commitdiff
Adds deprecation-message for ldap_sort
authorAndreas Heigl <andreas@heigl.org>
Sun, 28 Jun 2015 20:42:59 +0000 (22:42 +0200)
committerCôme Bernigaud <mcmic@php.net>
Mon, 29 Jun 2015 09:11:11 +0000 (11:11 +0200)
ext/ldap/ldap.c

index a040a0d38c39a979300d3647c4e011b458fb105f..5d47fb662407eb5b1eb3a9a743010d1877c0fc79 100644 (file)
@@ -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;
        }