cvs: php4 /ext/imap php_imap.c

From: Date: Thu, 01 Aug 2002 14:47:49 +0000
Subject: cvs: php4 /ext/imap php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13081@lists.php.net to get a copy of this message
kalowsky Thu Aug 1 10:47:49 2002 EDT Modified files: /php4/ext/imap php_imap.c Log: Adding in some BC for users to imap_get_quota() function Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.131 php4/ext/imap/php_imap.c:1.132 --- php4/ext/imap/php_imap.c:1.131 Tue Jul 30 21:03:31 2002 +++ php4/ext/imap/php_imap.c Thu Aug 1 10:47:48 2002 @@ -26,7 +26,7 @@ | PHP 4.0 updates: Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.131 2002/07/31 01:03:31 kalowsky Exp $ */ +/* $Id: php_imap.c,v 1.132 2002/08/01 14:47:48 kalowsky Exp $ */ #define IMAP41 @@ -389,6 +389,12 @@ FREE_ZVAL(t_map); FREE_ZVAL(IMAPG(quota_return)); return; + } + if (strncmp(qlist->name, "STORAGE", 7) == 0) + { + /* this is to add backwards compatibility */ + add_assoc_long_ex(IMAPG(quota_return), "usage", sizeof("usage"), qlist->usage); + add_assoc_long_ex(IMAPG(quota_return), "limit", sizeof("limit"), qlist->limit); } add_assoc_long_ex(t_map, "usage", sizeof("usage"), qlist->usage);

« previous php.cvs (#13081) next »