From: Russell dot Mosemann at cune dot edu Operating system: Debian 3.1 Etch PHP version: 5.1.6 PHP Bug Type: IMAP related Bug description: imap_sort() returns array of empty values
Description: ------------ imap_sort($stream, SORTARRIVAL, 1) returns an array with the same number of items as messages in the mailbox (e.g., 438 messages), but each location in the array is empty. The problem occurs with (imap-2002 or imap-2006) and (4.4.2 or 4.4.4 or 5.1.6 or 5.2R4). Reading from the Courier IMAP server with other clients works fine. This is being compiled as a module for Apache 2.2.3. The default locale on the server is en_US.UTF-8. configure --with-apxs2=/local/apache/bin/apxs --disable-cli \ --disable-cgi --without-pear --disable-ipv6 --disable-all \ --with-imap=/local/home/mose/imap-2006 \ --with-ldap --with-mysql --with-mysql-sock --with-pcre-regex Reproduce code: --------------- imap_open($stream, $user, $password, $options); return imap_sort($stream, SORTARRIVAL, 1); Expected result: ---------------- The returned array should be a list of integers representing messages ordered by arrival date and time. Actual result: -------------- Each location of the array is empty. It is as if the message numbers were lost, or the message number is being retrieved from the wrong place. -- Edit bug report at http://bugs.php.net/?id=38890&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38890&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38890&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38890&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38890&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38890&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38890&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38890&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38890&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38890&r=support Expected behavior: http://bugs.php.net/fix.php?id=38890&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38890&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38890&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38890&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38890&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38890&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38890&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38890&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38890&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38890&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38890&r=mysqlcfg