|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35350 imap_sort() fail when using with SE_UID
Submitted: 2005-11-23 17:07 UTC Modified: 2005-12-03 01:00 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: hoishing at gmail dot com Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 4.4.1 OS: linux F.C.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-11-23 17:07 UTC] hoishing at gmail dot com
my php compile with imap-2004g

1.lots of unknown notice appeared with using imap_sort($stream,0,0). 

2. If SE_UID is added, such as imap_sort($stream,0,0,SE_UID),  the script will fail to display.

Reproduce code:
1. $msg_nos=@imap_sort($stream, 0, 0);

2. $msg_nos=@imap_sort($stream,0,0,SE_UID);

Expected result:
1. array of sequence numbers without notices, as "@" is being used.

2. array of UIDs

Actual result:
1. lots of notices appeared such as:

Notice: (null)(): Missing or invalid host name after @ (errflg=3) in Unknown on line 0

Notice: (null)(): Unterminated mailbox: ##!@1230 (errflg=3) in Unknown on line 0

Notice: (null)(): Unterminated at-domain-list:> (errflg=3) in Unknown on line 0

2. Script fail to dispay


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 17:10 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-11-24 15:47 UTC] hoishing at gmail dot com
In PHP 5.0.5, notices will not appear if error_reporting set to E_STRICT

However, empty array will be returned when SE_UID is set.
 [2005-11-25 13:31 UTC]
Jani asked you to try something different than 5.0.5.
Please do that.
 [2005-12-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Feb 25 16:01:23 2021 UTC