The problem is:
ldap_set_rebind_proc() function does not work in any PHP Windows distribution
error obtained when executing the php file: Undefined function ldap_set_rebind_proc()
PHP tested versions (5.* y 7.*), I've even tried it on PHP versions included in WAMP and XAMPP server.
The other LDAP PHP functions , like ldap_connect(), ldap_bind(), etc. works well.
ldap_set_rebind_proc() function works well on PHP Linux distributions.
Any idea of this bug? Any solution to read referrals responses of ldap_search() function without using ldap_set_rebind_proc()?