Skip to content

Commit 77d1447

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fix bug 76618
2 parents 66271df + ba27866 commit 77d1447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ PHP_FUNCTION(imap_reopen)
867867

868868
imap_le_struct->imap_stream = mail_open(imap_le_struct->imap_stream, ZSTR_VAL(mailbox), flags);
869869
if (imap_le_struct->imap_stream == NIL) {
870-
zend_list_delete(Z_RES_P(streamind));
870+
zend_list_close(Z_RES_P(streamind));
871871
php_error_docref(NULL, E_WARNING, "Couldn't re-open stream");
872872
RETURN_FALSE;
873873
}

0 commit comments

Comments
 (0)