From 9090a21de0b0229dbb05e835bb9bbcb890cec932 Mon Sep 17 00:00:00 2001 From: Aron Rotteveel Date: Mon, 26 Mar 2018 14:39:36 +0200 Subject: reset imap_errorstack after outputting it This happens in `imap_errors` as well, but seems to be omitted in the `shutdown` routine. --- ext/imap/php_imap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index acde3ba629..9a5e6e84a7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1082,6 +1082,7 @@ PHP_RSHUTDOWN_FUNCTION(imap) } } mail_free_errorlist(&IMAPG(imap_errorstack)); + IMAPG(imap_errorstack) = NIL; } if (IMAPG(imap_alertstack) != NIL) { -- cgit v1.2.1