ID:               45487
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sblackstone at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: OSX Leopard
 PHP Version:      5.2.6
 New Comment:

>From sources:

 add_property_long(mboxob, "attributes", cur->attributes);

As you can see, PHP only adds whatever the UW imap c-client has set the
attributes to. Not PHP bug -> bogus.


Previous Comments:
------------------------------------------------------------------------

[2008-07-11 15:26:40] sblackstone at gmail dot com

Description:
------------
The documentation for imap_getsubscribed notes the following:

Identical to imap_getmailboxes(), except that it only returns mailboxes
that the user is subscribed to. 


However getsubscribed clobbers the attributes value and returns 0.

Reproduce code:
---------------
<?

$imap   = imap_open("{localhost:143/notls}","username","password");

$results_bad = imap_getSubscribed($imap, "{localhost:143/notls}",
"*");

// Note: I just picked an arbitrary mailbox in the results items below
// You need to pick a value that has children or just print the whole
// array.

print_r($results_bad[1]);

$results_good = imap_getmailboxes($imap, "{localhost:143/notls}",
"*");

print_r($results_good[1]);


?>



Expected result:
----------------
stdClass Object
(
    [name] => {localhost:143/notls}SOMEMAILBOX
    [attributes] => 64
    [delimiter] => .
)


Actual result:
--------------
stdClass Object
(
    [name] => {localhost:143/notls}SOMEMAILBOX
    [attributes] => 0
    [delimiter] => .
)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45487&edit=1

Reply via email to