#18627 [Fbk->Opn]: Broken imap_get_quota() with Cyrus

From: Date: Mon, 29 Jul 2002 20:33:17 +0000
Subject: #18627 [Fbk->Opn]: Broken imap_get_quota() with Cyrus
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15518@lists.php.net to get a copy of this message
ID: 18627 User updated by: rudib@email.si Reported By: rudib@email.si -Status: Feedback +Status: Open Bug Type: IMAP related Operating System: Linux PHP Version: 4CVS-2002-07-29 New Comment: Some of the returned array keys: STORAGEIDLE STORAGEREAD=REFE! STORAGEILDREN STORAGELBOX-REFEA STORAGE They change each time I re-run the script. I know, it's weird. Previous Comments: ------------------------------------------------------------------------ [2002-07-29 14:15:02] kalowsky@php.net what do you mean it's filled with "garbage"? ------------------------------------------------------------------------ [2002-07-29 13:43:02] rudib@email.si imap_get_quota() returns an array with key 'STORAGE'. However, "garbage" follows in the value of the key. Sample script: -- <?php $imap = imap_open('{localhost:143}', 'cyrus', 'aa'); $quota = imap_get_quota($imap, 'user.test'); var_dump($quota); if (isset($quota['STORAGE'])) { print 'set!'; } ?> -- "Sample" output: array(1) { ["STORAGEAMESPACE"]=> array(2) { ["usage"]=> int(1) ["limit"]=> int(10000) } } Tho, sometimes, "STORAGE" is correctly set. :) I know that this has been mentioned in the CVS logs, but I'd really like a fix for this. ;) Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18627&edit=1

« previous php.bugs (#15518) next »