diff options
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0b8a357bc3..2685d5b9cf 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1091,12 +1091,8 @@ PHP_FUNCTION(imap_get_quota) RETURN_FALSE; } - if (array_init(return_value) == FAILURE) { - php_error(E_WARNING, "Unable to allocate array memory"); - RETURN_FALSE; - } - - add_next_index_zval(return_value, IMAPG(quota_return)); + *return_value = *IMAPG(quota_return); + FREE_ZVAL(IMAPG(quota_return)); } /* }}} */ |