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:01:48 +0100
commit12a09183b369779fcf123cdd4fbacee373cc7d98 (patch)
tree14d65fb50de43cadf0f6f186b0f0ef1d6209d6ff /ext/imap/php_imap.c
parentd4bf0799b80d8bbd128e9e41624779d844033a42 (diff)
downloadphp-git-12a09183b369779fcf123cdd4fbacee373cc7d98.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 cf8ed7bcf2..7725f36f0e 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -1315,7 +1315,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;
}