#18627 [NEW]: Broken imap_get_quota() with Cyrus
| From: | rudib at email dot si | Date: | Mon, 29 Jul 2002 17:43:03 +0000 |
| Subject: | #18627 [NEW]: Broken imap_get_quota() with Cyrus | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15509@lists.php.net to get a copy of this message | ||
From: rudib@email.si
Operating system: Linux
PHP version: 4CVS-2002-07-29
PHP Bug Type: IMAP related
Bug description: Broken imap_get_quota() with Cyrus
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 bug report at http://bugs.php.net/?id=18627&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18627&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18627&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18627&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18627&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18627&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18627&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18627&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18627&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18627&r=globals