Add ldap_escape()
Merge branch 'ldap_escape-dev' of https://github.com/DaveRandom/php-src

* 'ldap_escape-dev' of https://github.com/DaveRandom/php-src:
  Add ldap_escape()
fix compiler warnings and type usage