php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hoishing at gmail dot com
New email:
PHP Version: OS:

 

 [2005-11-23 17:07 UTC] hoishing at gmail dot com
Description:
------------
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: @hotmail.com> (errflg=3) in Unknown on line 0


2. Script fail to dispay

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 17:10 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [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] tony2001@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 04:01:36 2025 UTC