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

From: Date: Tue, 30 Jul 2002 02:44:22 +0000
Subject: #18627 [Fbk]: Broken imap_get_quota() with Cyrus
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15538@lists.php.net to get a copy of this message
ID: 18627 Updated by: kalowsky@php.net Reported By: rudib@email.si Status: Feedback Bug Type: IMAP related Operating System: Linux PHP Version: 4CVS-2002-07-29 New Comment: Was what with 4.3.0-dev? My testing? It's from CVS head. His snapshot is from a 4.3 snapshot. Previous Comments: ------------------------------------------------------------------------ [2002-07-29 19:47:17] sniper@php.net Was this with PHP 4.3.0-dev ? (just want to be sure..) ------------------------------------------------------------------------ [2002-07-29 18:09:11] kalowsky@php.net try as I might to reproduce this, I can't. I get no such errors, only the same data each time. Could it be your build of c-client by any chance? ------------------------------------------------------------------------ [2002-07-29 16:33:17] rudib@email.si 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. ------------------------------------------------------------------------ [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 (#15538) next »