From deae60239d70880053ae271a573c782880eb9bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Tue, 31 Dec 2013 14:34:20 +0800 Subject: [PATCH] MDL-43503 do not check presence of ldap paging functions, we require PHP 5.4 now --- lib/ldaplib.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/ldaplib.php b/lib/ldaplib.php index 31ef0e181a1..0a941a072ad 100644 --- a/lib/ldaplib.php +++ b/lib/ldaplib.php @@ -382,19 +382,14 @@ function ldap_stripslashes($text) { /** - * Check if PHP supports LDAP paged results and we can use them (we have to use LDAP - * version 3, otherwise the server doesn't use them). + * Check if we use LDAP version 3, otherwise the server cannot use them. * * @param ldapversion integer The LDAP protocol version we use. * * @return boolean true is paged results can be used, false otherwise. */ function ldap_paged_results_supported($ldapversion) { - - if (((int)$ldapversion === 3) && - function_exists('ldap_control_paged_result') && - function_exists('ldap_control_paged_result_response')) { - + if ((int)$ldapversion === 3) { return true; }