# [PATCH] Use non-deprecated routines in php-ldap

- Thread: https://externals.io/message/60316
- Original archive: https://news-web.php.net/php.internals/60316
- Started by Etienne Bagnoud on 2012-04-26T08:59:54+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #60316 — Etienne Bagnoud — 2012-04-26T08:59:54+00:00

URL: https://externals.io/message/60316#60316

Hi,

I sent two patch on php-ldap (bug #61853) to avoid use of deprecated 
routines of libldap (ldap_search->ldap_search_ext, 
ldap_add->ldap_add_ext, ...).

I used ldap_get_option to fetch LDAPControl as I've seen code that 
workaround some php-ldap limitation with ldap_set_option, so it should 
not broke existing code. Example : 
http://moodle.org/mod/forum/discuss.php?d=28791

Regards,
Etienne.
