From: kevin at icscomp dot com Operating system: Windows 2003 Server PHP version: 5.2.6 PHP Bug Type: IMAP related Bug description: IMAP with Exchange doesn't work - Part II
Description: ------------ This is in reference to Bug #45470 which was pre-maturely closed. http://bugs.php.net/bug.php?id=45470 In the last response this is the information I was given: "It's just that Exhange + IMAP == not very good idea. It's not any PHP bug anyway, we just wrap around the UW Imap c-client lib, so you should complain to the author of it. But consider yourself warned: He'll say about same what I said above. :)" But then I tried using the imap_num_recent and imap_check and these functions from Exchange, leaving me to believe there is a definite problem with the imap_status function in php. Please address this. Reproduce code: --------------- imap_open("{mailserver:993/imap/ssl}/INBOX", "domain/user","password", OP_READONLY, 1) or die("can't connect: ".imap_last_error()); $imap_obj = imap_status($mbox, "{mail:993/imap/ssl}/INBOX", SA_UNSEEN); var_dump($imap_obj); Expected result: ---------------- I assume something like: object(stdClass)#19 (1) { ["Unread"]=> int(5) } Actual result: -------------- Output 1: object(stdClass)#19 (1) { ["flags"]=> int(0) } Output 2: object(stdClass)#19 (2) { ["flags"]=> int(26571976) ["uidnext"]=> int(26649488) } back and forth .... no other data is listed. -- Edit bug report at http://bugs.php.net/?id=45669&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45669&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45669&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45669&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45669&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45669&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45669&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45669&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45669&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45669&r=support Expected behavior: http://bugs.php.net/fix.php?id=45669&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45669&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45669&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45669&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45669&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45669&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45669&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45669&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45669&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45669&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45669&r=mysqlcfg
