Surpress warnings when ldap page control is not available

This commit is contained in:
Matthias Jentsch 2015-02-25 18:39:03 +01:00
parent 89451f3086
commit bc950a855d
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class Connection
} }
} while (($limit === 0 || $limit !== count($entries)) && ($entry = ldap_next_entry($this->ds, $entry))); } while (($limit === 0 || $limit !== count($entries)) && ($entry = ldap_next_entry($this->ds, $entry)));
if (false === ldap_control_paged_result_response($this->ds, $results, $cookie)) { if (false === @ldap_control_paged_result_response($this->ds, $results, $cookie)) {
// If the page size is greater than or equal to the sizeLimit value, the server should ignore the // If the page size is greater than or equal to the sizeLimit value, the server should ignore the
// control as the request can be satisfied in a single page: https://www.ietf.org/rfc/rfc2696.txt // control as the request can be satisfied in a single page: https://www.ietf.org/rfc/rfc2696.txt
// This applies no matter whether paged search requests are permitted or not. You're done once you // This applies no matter whether paged search requests are permitted or not. You're done once you