6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12682] Horde_Imap_Client_Base::search() does not return 'count' value.
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.__.\ /\ / __. [__ | | >< >< (__ | |__\/ \/ \.__)
Comment
> phpdoc states that 'count' is always returned in the search results. > The folllowing example returns 'null' as the value: > > <code> > $mbox = new Horde_Imap_Client_Mailbox('INBOX'); > $query = new Horde_Imap_Client_Search_Query(); > $query->dateSearch( > new Horde_Date(1379004786), > Horde_Imap_Client_Search_Query::DATE_SINCE); > > $results = $registry->mail->imapOb()->search($mbox, $query, > array('results' => array(Horde_Imap_Client::SEARCH_RESULTS_MATCH))); > > var_dump($results['count']); // null > var_dump($results['match']->ids); // array containing 51 UIDs that > matched the search criteria > </code>
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers