Extensions

LDAP

When working with the Lightweight Directory Access Protocol (LDAP), you will not only notice that there are various interpretations of the term lightweight, but also that you need to use the ldap extension, which comes bundled with PHP but has to be enabled at compile time using the --enable-ldap switch.

The two functions ldap_control_paged_result() and ldap_control_paged_result_response() that control pagination when communicating with the LDAP server have been deprecated in PHP 7.4.

We would argue that when calling a remote service, it is probably better to fetch one bigger result, rather than adding more network roundtrips to retrieve a paginated result. Plus, when you find yourself repeatedly downloading a whole phone book over LDAP, there might be better ways of doing that.