Loading src/UnicaenLdap/Service/AbstractService.php +8 −2 Original line number Diff line number Diff line Loading @@ -161,8 +161,11 @@ abstract class AbstractService implements if ($this->count > 0) { if ($orderBy !== null && is_string($orderBy)) { if (! function_exists($ldapSort = 'ldap_sort')) { throw new \BadFunctionCallException("Impossible de trier, la fonction 'ldap_sort' n'existe plus depuis PHP 8.0"); } ErrorHandler::start(E_WARNING); $isSorted = ldap_sort($resource, $search, $orderBy); $isSorted = $ldapSort($resource, $search, $orderBy); ErrorHandler::stop(); if ($isSorted === false) { throw new Exception($this, 'sorting: ' . $orderBy); Loading Loading @@ -235,8 +238,11 @@ abstract class AbstractService implements ErrorHandler::stop(); if ($this->count > 0) { if ($orderBy !== null && is_string($orderBy)) { if (! function_exists($ldapSort = 'ldap_sort')) { throw new \BadFunctionCallException("Impossible de trier, la fonction 'ldap_sort' n'existe plus depuis PHP 8.0"); } ErrorHandler::start(E_WARNING); $isSorted = ldap_sort($resource, $search, $orderBy); $isSorted = $ldapSort($resource, $search, $orderBy); ErrorHandler::stop(); if ($isSorted === false) { throw new Exception($this, 'sorting: ' . $orderBy); Loading Loading
src/UnicaenLdap/Service/AbstractService.php +8 −2 Original line number Diff line number Diff line Loading @@ -161,8 +161,11 @@ abstract class AbstractService implements if ($this->count > 0) { if ($orderBy !== null && is_string($orderBy)) { if (! function_exists($ldapSort = 'ldap_sort')) { throw new \BadFunctionCallException("Impossible de trier, la fonction 'ldap_sort' n'existe plus depuis PHP 8.0"); } ErrorHandler::start(E_WARNING); $isSorted = ldap_sort($resource, $search, $orderBy); $isSorted = $ldapSort($resource, $search, $orderBy); ErrorHandler::stop(); if ($isSorted === false) { throw new Exception($this, 'sorting: ' . $orderBy); Loading Loading @@ -235,8 +238,11 @@ abstract class AbstractService implements ErrorHandler::stop(); if ($this->count > 0) { if ($orderBy !== null && is_string($orderBy)) { if (! function_exists($ldapSort = 'ldap_sort')) { throw new \BadFunctionCallException("Impossible de trier, la fonction 'ldap_sort' n'existe plus depuis PHP 8.0"); } ErrorHandler::start(E_WARNING); $isSorted = ldap_sort($resource, $search, $orderBy); $isSorted = $ldapSort($resource, $search, $orderBy); ErrorHandler::stop(); if ($isSorted === false) { throw new Exception($this, 'sorting: ' . $orderBy); Loading