ID: 40865 User updated by: xhack at web dot de Reported By: xhack at web dot de Status: Bogus Bug Type: IMAP related Operating System: Debian Linux Etch 4.0 PHP Version: 5.2.1 New Comment:
so i can close this bug i think. is this error c-client the libc6? Previous Comments: ------------------------------------------------------------------------ [2007-03-20 14:00:29] [EMAIL PROTECTED] PHP doesn't do any sorting either, c-client does. ------------------------------------------------------------------------ [2007-03-20 13:53:01] xhack at web dot de the processing is quite excellent, but the function always sorts the sequence-field (asc) - and it shouldn't. ------------------------------------------------------------------------ [2007-03-20 13:44:59] [EMAIL PROTECTED] PHP just passes this string to c-client, the processing is done there. ------------------------------------------------------------------------ [2007-03-20 13:33:18] xhack at web dot de 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 this bug report at http://bugs.php.net/?id=40865&edit=1