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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
9 + 24 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC