php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

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;
        }
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 10:01:29 2024 UTC