com php-src: Adds deprecation-message for ldap_sort: ext/ ldap/ldap.c

From: Date: Mon, 29 Jun 2015 09:11:11 +0000
Subject: com php-src: Adds deprecation-message for ldap_sort: ext/ ldap/ldap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87610@lists.php.net to get a copy of this message
Commit: 85aabd3e8593b9399db49aaeee9808454e811f80 Author: Andreas Heigl <andreas@heigl.org> Sun, 28 Jun 2015 22:42:59 +0200 Committer: Côme Bernigaud <mcmic@php.net> Mon, 29 Jun 2015 11:11:11 +0200 Parents: 625dba022c69dc499ecab39801d90baa9fbb2120 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=85aabd3e8593b9399db49aaeee9808454e811f80 Log: Adds deprecation-message for ldap_sort Changed paths: M ext/ldap/ldap.c Diff: diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index a040a0d..5d47fb6 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; }

« previous php.cvs (#87610) next »