== Building the patched LDAP extension ==
=== Requirements ===
* PHP 5.5 (including development tools like <code>phpize</code>)
* OpenLDAP libraries and headers
* libtool
* gcc
* make
* autoconf
* git
* php-ldap extension '''must not be installed'' already, otherwise it will clash with the patched one
=== Building & installation ===
<source lang='bash'>
git clone -b ldap-controls-PHP-5.5.10 --depth=1 https://github.com/stepping-stone/php-src.git
cd php-src/ext/ldap
phpize
aclocal
libtoolize -f
autoheader
autoconf
./configure
make
sudo make install
</source>
=== Activation ===
Add the following line to the relevant <code>php.ini</code>:
<source lang='ini'>
extensions=php_ldap.so
</source>
[[Category:Documentation]]
[[Category:PHP]]
[[Category:OpenLDAP directory]]