8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd86797 commit 7da4453Copy full SHA for 7da4453
src/Symfony/Component/Ldap/LdapClient.php
@@ -84,8 +84,17 @@ public function find($dn, $query, $filter = '*')
84
}
85
86
$search = ldap_search($this->connection, $dn, $query, $filter);
87
+
88
+ if (false === $search) {
89
+ throw new LdapException(ldap_error($this->connection));
90
+ }
91
92
$infos = ldap_get_entries($this->connection, $search);
93
94
+ if (false === @ldap_free_result($search)) {
95
96
97
98
if (0 === $infos['count']) {
99
return;
100