# Extensions

> Section in “Backward Incompatible Changes › Deprecated Features” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/backward-incompatible-changes/deprecated-features/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.

---

Previous: [Security](https://php7explained.com/backward-incompatible-changes/deprecated-features/security/index.html.md) | Next: [More Facepalms](https://php7explained.com/backward-incompatible-changes/deprecated-features/more-facepalms/index.html.md)
