diff options
author | Aron Rotteveel <rotteveel.aron@gmail.com> | 2018-03-26 14:39:36 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-04-14 13:04:40 +0200 |
commit | 9090a21de0b0229dbb05e835bb9bbcb890cec932 (patch) | |
tree | e87a0fb9249bf0a072a6719e3e1f23d72c7c3f78 | |
parent | 4e407b87774a02cd03de2ec453f4c0b84f11cd13 (diff) | |
download | php-git-9090a21de0b0229dbb05e835bb9bbcb890cec932.tar.gz |
reset imap_errorstack after outputting it
This happens in `imap_errors` as well, but seems to be omitted in the `shutdown` routine.
-rw-r--r-- | ext/imap/php_imap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |