summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-10-22 17:01:48 +0100
committerGeorge Peter Banyard <girgias@php.net>2020-10-22 17:05:29 +0100
commitba27866aecf086cd8311dd8fa7c9f83e09ec1e82 (patch)
tree116d43b5d68fb3146a9a1f0afa9daebead1c559c /ext/imap/php_imap.c
parent20cbb233c4e613ae4b7c669a047ab10dc5080028 (diff)
downloadphp-git-ba27866aecf086cd8311dd8fa7c9f83e09ec1e82.tar.gz
Fix bug 76618
Apply patch which was attached to the bug in July 2018
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r--ext/imap/php_imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 6861b2ad9e..147df9d4fa 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -867,7 +867,7 @@ PHP_FUNCTION(imap_reopen)
imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, ZSTR_VAL(mailbox), flags);
if (imap_le_struct->imap_stream == NIL) {
- zend_list_delete(Z_RES_P(streamind));
+ zend_list_close(Z_RES_P(streamind));
php_error_docref(NULL, E_WARNING, "Couldn't re-open stream");
RETURN_FALSE;
}