#40865 [NEW]: imap_fetch_overview ignores sequence-order
| From: | xhack at web dot de | Date: | Tue, 20 Mar 2007 13:33:18 +0000 |
| Subject: | #40865 [NEW]: imap_fetch_overview ignores sequence-order | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-110557@lists.php.net to get a copy of this message | ||
From: xhack at web dot de
Operating system: Debian Linux Etch 4.0
PHP version: 5.2.1
PHP Bug Type: IMAP related
Bug description: imap_fetch_overview ignores sequence-order
Description:
------------
imap_fetch_overview() ignores the order of integers in the sequence-field.
this is annoying when you try to sort mails
and then fetch a sorted list.
Reproduce code:
---------------
$res=imap_fetch_overview($mbox,"1,2,3,10",0);
OR
$res=imap_fetch_overview($mbox,"10,3,1,2",0);
OR SO ON ...
Expected result:
----------------
$res[0]->msgno=10
$res[1]->msgno=3
$res[2]->msgno=1
$res[3]->msgno=2
Actual result:
--------------
$res[0]->msgno=1
$res[1]->msgno=2
$res[2]->msgno=3
$res[3]->msgno=10
--
Edit bug report at http://bugs.php.net/?id=40865&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40865&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40865&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40865&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40865&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40865&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40865&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40865&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40865&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40865&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40865&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40865&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40865&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40865&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40865&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40865&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40865&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40865&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40865&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40865&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40865&r=mysqlcfg