#35350 [Fbk->Opn]: imap_sort() fail when using with SE_UID
| From: | hoishing at gmail dot com | Date: | Thu, 24 Nov 2005 14:47:08 +0000 |
| Subject: | #35350 [Fbk->Opn]: imap_sort() fail when using with SE_UID | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88847@lists.php.net to get a copy of this message | ||
ID: 35350
User updated by: hoishing at gmail dot com
Reported By: hoishing at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: IMAP related
Operating System: linux F.C.3
PHP Version: 4.4.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-11-23 17:10:28] 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-23 17:07:00] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35350&edit=1