Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 570af36

Browse files
committed
Merge branch 'master' of git://github.com/zendframework/zf2 into hotfix/validator-db-abstractdb-tableIdentifier
25 parents 71b7690 + 95f6ca9 + 826a0e1 + 5998122 + 34263bb + 73b49a3 + a7937fe + 18bc286 + 7c2f341 + 3fd24f6 + 46b66eb + 5dc451e + 6cc63be + 36c3273 + d866e82 + 91a7d10 + d7310a9 + 024435b + 9d596bf + 205ad91 + 827e841 + aacf431 + 37d0971 + 4e0f2d8 + d00b2c8 commit 570af36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Ldap.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,17 +904,18 @@ public function search($filter, $basedn = null, $scope = self::SEARCH_SCOPE_SUB,
904904
$filter = $filter->toString();
905905
}
906906

907+
$resource = $this->getResource();
907908
ErrorHandler::start(E_WARNING);
908909
switch ($scope) {
909910
case self::SEARCH_SCOPE_ONE:
910-
$search = ldap_list($this->getResource(), $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
911+
$search = ldap_list($resource, $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
911912
break;
912913
case self::SEARCH_SCOPE_BASE:
913-
$search = ldap_read($this->getResource(), $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
914+
$search = ldap_read($resource, $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
914915
break;
915916
case self::SEARCH_SCOPE_SUB:
916917
default:
917-
$search = ldap_search($this->getResource(), $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
918+
$search = ldap_search($resource, $basedn, $filter, $attributes, 0, $sizelimit, $timelimit);
918919
break;
919920
}
920921
ErrorHandler::stop();

0 commit comments

Comments
 (0)