From 807c3d0d9745e850d08ceb2a1d6c018f8b791706 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 14 Feb 2013 05:58:28 -0500
Subject: [PATCH] Optimmize memory usage by only fetching the necessary attributes used for contacts listing
---
program/lib/Roundcube/rcube_ldap_generic.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php
index 0b04129..c5ea4ea 100644
--- a/program/lib/Roundcube/rcube_ldap_generic.php
+++ b/program/lib/Roundcube/rcube_ldap_generic.php
@@ -412,6 +412,9 @@
$this->_debug("S: ".($errmsg ? $errmsg : ldap_error($this->conn)));
}
}
+ else if ($this->debug) {
+ $this->_debug("S: ".ldap_count_entries($this->conn, $ldap_result)." record(s) found");
+ }
$this->result = new rcube_ldap_result($this->conn, $ldap_result, $base_dn, $filter, $vlv_count);
--
Gitblit v1.9.1