Req #61853 [Asn]: Use of non-deprecated functions
| From: | ab@php.net | Date: | Fri, 19 Apr 2013 11:30:52 +0000 |
| Subject: | Req #61853 [Asn]: Use of non-deprecated functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178538@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61853&edit=1
ID: 61853
Updated by: ab@php.net
Reported by: etienne at lamaisondebarbie dot ch
Summary: Use of non-deprecated functions
Status: Assigned
Type: Feature/Change Request
Package: LDAP related
Operating System: Debian testing
PHP Version: master-Git-2012-04-25 (Git)
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
@etienne any updates on this front?
Previous Comments:
------------------------------------------------------------------------
[2013-02-25 13:51:28] ab@php.net
Only one thing is crossing my mind is that you could haven't run './buildconf
--force' after changing the config.* files. If so, that macros was still defined.
------------------------------------------------------------------------
[2013-02-25 11:48:02] etienne at lamaisondebarbie dot ch
Ok, I'm working on it, but how did you get those warnings, cause I didn't get any ?
------------------------------------------------------------------------
[2013-02-25 10:06:17] ab@php.net
Hi,
i've tested your patch on windows and linux, it looks good. However there are
some warnings now (after LDAP_DEPRECATED removal in the config.* files):
ldap.c: In function â_close_ldap_linkâ:
ldap.c:98: warning: implicit declaration of function âldap_unbind_sâ
ldap.c: In function â_php_ber_to_array_recursiveâ:
ldap.c:137: warning: unused variable ârootâ
ldap.c: In function â_php_ber_from_array_recursiveâ:
ldap.c:366: warning: unused variable âiâ
ldap.c: In function âzif_ldap_connectâ:
ldap.c:763: warning: implicit declaration of function âldap_initâ
ldap.c:763: warning: assignment makes pointer from integer without a cast
ldap.c: In function âzif_ldap_bindâ:
ldap.c:826: warning: implicit declaration of function âldap_bind_sâ
ldap.c: In function âphp_ldap_do_searchâ:
ldap.c:1034: warning: unused variable âold_ldap_sizelimitâ
ldap.c: In function âzif_ldap_explode_dnâ:
ldap.c:1748: warning: implicit declaration of function âldap_value_freeâ
ldap.c: In function âzif_ldap_deleteâ:
ldap.c:1981: warning: implicit declaration of function âldap_delete_sâ
ldap.c: In function âzif_ldap_compareâ:
ldap.c:2057: warning: implicit declaration of function âldap_compare_sâ
ldap.c: In function âzif_ldap_sortâ:
ldap.c:2095: warning: implicit declaration of function âldap_sort_entriesâ
That "implicit declaration" stuff is for sure because of the removed
LDAP_DEPRECATED definition. Fixing that were now the finishing straight i'd say.
Thanks for you work :)
------------------------------------------------------------------------
[2013-02-24 16:57:22] etienne at lamaisondebarbie dot ch
Here is the patch including patch from #61853 and #61921 with some helper functions in file
ldap_dev_utils.c. This goes against current php-src head.
------------------------------------------------------------------------
[2013-02-22 21:19:10] etienne at lamaisondebarbie dot ch
Yes you are right, ldap_control_create is not available everywhere (not in older libldap and not in
winldap). I used it naturally and forget to check for this one.
It has to be re-implemented into php-ldap, I'll do as soon as possible.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61853
--
Edit this bug report at https://bugs.php.net/bug.php?id=61853&edit=1