#40087 [Opn->Fbk]: imap_getmailboxes() gives a folder two times with different attributes
| From: | tony2001@php.net | Date: | Thu, 11 Jan 2007 17:09:13 +0000 |
| Subject: | #40087 [Opn->Fbk]: imap_getmailboxes() gives a folder two times with different attributes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107499@lists.php.net to get a copy of this message | ||
ID: 40087
Updated by: tony2001@php.net
Reported By: scalero at datadec dot es
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: Red Hat Enterprise Linux AS 4
PHP Version: 4.4.4
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 17:04:18] scalero at datadec dot es
It don't work, now with:
PHP Version: 5.2.1RC3-dev (latest)
c-client: imap-2006d (latest)
it reproduces the same behavior. The 'test' folder appears without its
children folders.
Greetings.
------------------------------------------------------------------------
[2007-01-11 12:03:52] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2007-01-10 07:59:56] scalero at datadec dot es
Description:
------------
Something very strange is happening me when I create a structure of
folders like the following:
INBOX
test
test.aaa
test.bbb
test second
test second.ccc
test second.ddd
I use the following versions:
Horde 3.1.3
IMP H3 (4.1.3)
PHP 4.4.4
c-client imap-2004g
cyrus 2.2.10
I have tried to update c-client to the version 'imap-2006d' but I have
had this problem: http://bugs.php.net/bug.php?id=39401
Reproduce code:
---------------
imap_getmailboxes($this->_getStream(), "{localhost:1143/imap/notls}",
"%");
Expected result:
----------------
I expect each folder appears only one time with its appropriate
attributes.
Actual result:
--------------
var_dump() exit:
----------------
array(4) {
[0]=>
object(stdClass)(3) {
["name"]=>
string(32) "{localhost:1143/imap/notls}INBOX"
["attributes"]=>
int(1)
["delimiter"]=>
string(1) "."
}
[1]=>
object(stdClass)(3) {
["name"]=>
string(31) "{localhost:1143/imap/notls}test"
["attributes"]=>
int(64)
["delimiter"]=>
string(1) "."
}
[2]=>
object(stdClass)(3) {
["name"]=>
string(38) "{localhost:1143/imap/notls}test second"
["attributes"]=>
int(32)
["delimiter"]=>
string(1) "."
}
[3]=>
object(stdClass)(3) {
["name"]=>
string(31) "{localhost:1143/imap/notls}test"
["attributes"]=>
int(34)
["delimiter"]=>
string(1) "."
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40087&edit=1