Re: com php-src: Adds deprecation-message for ldap_sort: ext/ldap/ldap.c
| From: | Kalle Sommer Nielsen | Date: | Mon, 29 Jun 2015 11:51:20 +0000 |
| Subject: | Re: com php-src: Adds deprecation-message for ldap_sort: ext/ldap/ldap.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-87621@lists.php.net to get a copy of this message | ||
Hi Côme
2015-06-29 11:11 GMT+02:00 Côme Bernigaud <mcmic@php.net>:
> 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ò²ªËðo@)„¾pÄ
> `
>
> 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");
> +
You should use PHP_DEP_FE() in the function_entry struct which will do
exactly this when the function is called :)
--
regards,
Kalle Sommer Nielsen
kalle@php.net