Patch php-inbox-php71-reopen-close.patch for IMAP related Bug #76618
Patch version 2018-07-13 07:54 UTC
Return to Bug #76618 |
Download this patch
Patch Revisions:
Developer: slim@inbox.lv
--- php-7.1.19/ext/imap/php_imap.c 2018-07-12 16:59:40.880630041 +0300
+++ php-7.1.19/ext/imap/php_imap.c 2018-07-12 17:01:28.261671762 +0300
@@ -1297,7 +1297,7 @@
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;
}
|