* PHP-5.4: fix test fix memleak on resetting rebind_proc
@ -2107,6 +2107,7 @@ PHP_FUNCTION(ldap_set_rebind_proc)
/* unregister rebind procedure */
if (ld->rebindproc != NULL) {
zval_dtor(ld->rebindproc);
FREE_ZVAL(ld->rebindproc);
ld->rebindproc = NULL;
ldap_set_rebind_proc(ld->link, NULL, NULL);
}
@ -217,14 +217,26 @@ array(2) {
[1]=>
resource(%d) of type (ldap result)
NULL
array(1) {
["count"]=>
int(0)
array(2) {
[0]=>
===DONE===