From:             scalero at datadec dot es
Operating system: Red Hat Enterprise Linux AS 4
PHP version:      4.4.4
PHP Bug Type:     IMAP related
Bug description:  imap_getmailboxes() gives a folder two times with different 
attributes

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 bug report at http://bugs.php.net/?id=40087&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40087&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40087&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40087&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40087&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40087&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40087&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40087&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40087&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40087&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40087&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40087&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40087&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40087&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40087&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40087&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40087&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40087&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40087&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40087&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40087&r=mysqlcfg

Reply via email to