Changeset 5356 in subversion
- Timestamp:
- Oct 19, 2011 11:56:20 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_ldap.php
r5349 r5356 1152 1152 $this->_debug("D: total numsubordinates = " . $this->vlv_count); 1153 1153 } 1154 else // ...or by fetching all records dn and count them1154 else if (!function_exists('ldap_parse_virtuallist_control')) // ...or by fetching all records dn and count them 1155 1155 $this->vlv_count = $this->_exec_search(true); 1156 1156 … … 1163 1163 $attrs, 0, (int)$this->prop['sizelimit'], (int)$this->prop['timelimit'])) 1164 1164 { 1165 // when running on a patched PHP we can use the extended functions to retrieve the total count from the LDAP search result 1166 if ($this->vlv_active && function_exists('ldap_parse_virtuallist_control') && 1167 ldap_parse_result($this->conn, $this->ldap_result, $errcode, $matcheddn, $errmsg, $referrals, $serverctrls)) { 1168 ldap_parse_virtuallist_control($this->conn, $serverctrls, $last_offset, $this->vlv_count, $vresult); 1169 $this->_debug("S: VLV result: last_offset=$last_offset; content_count=$this->vlv_count"); 1170 } 1171 1165 1172 $this->_debug("S: ".ldap_count_entries($this->conn, $this->ldap_result)." record(s)"); 1166 1173 if ($err = ldap_errno($this->conn)) 1167 1174 $this->_debug("S: Error: " .ldap_err2str($err)); 1175 1168 1176 return $count ? ldap_count_entries($this->conn, $this->ldap_result) : true; 1169 1177 }
Note: See TracChangeset
for help on using the changeset viewer.
