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

Description:
------------
When I run the PHP commands to try to retrieve the unread messages using
the imap_status command, I am finding that no data is being returned. 
Additionally, the data that is being returned is random numbers each
time I push the refresh button.  I would really like to see this issue
be fixed.  Thanks.

My code is below:


Here is the output


Help!


Reproduce code:
---------------
$mbox = imap_open("{mailserver:993/imap/ssl}", "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=45470&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45470&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45470&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45470&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45470&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45470&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45470&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45470&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45470&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45470&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45470&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45470&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45470&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45470&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45470&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45470&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45470&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45470&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45470&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45470&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45470&r=mysqlcfg

Reply via email to