|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-15 02:11 UTC] jani@php.net
[2008-07-15 13:08 UTC] sblackstone at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
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] => . )