Browse Source

Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  fix test
  fix memleak on resetting rebind_proc
pull/502/head
Michael Wallner 13 years ago
parent
commit
d4d6a95105
  1. 1
      ext/ldap/ldap.c
  2. 20
      ext/ldap/tests/ldap_search_variation6.phpt

1
ext/ldap/ldap.c

@ -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);
}

20
ext/ldap/tests/ldap_search_variation6.phpt

@ -217,14 +217,26 @@ array(2) {
[1]=>
resource(%d) of type (ldap result)
}
NULL
NULL
array(1) {
["count"]=>
int(0)
}
array(1) {
["count"]=>
int(0)
}
array(2) {
[0]=>
resource(%d) of type (ldap result)
[1]=>
resource(%d) of type (ldap result)
}
NULL
NULL
array(1) {
["count"]=>
int(0)
}
array(1) {
["count"]=>
int(0)
}
===DONE===
Loading…
Cancel
Save