]> granicus.if.org Git - php/commitdiff
reset imap_errorstack after outputting it
authorAron Rotteveel <rotteveel.aron@gmail.com>
Mon, 26 Mar 2018 12:39:36 +0000 (14:39 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 14 Apr 2018 11:04:40 +0000 (13:04 +0200)
This happens in `imap_errors` as well, but seems to be omitted in the `shutdown` routine.

ext/imap/php_imap.c

index acde3ba6295fd2d87b0a5d42890b36858e0e2664..9a5e6e84a7188aff8c7a4b54c880d847183e174c 100644 (file)
@@ -1082,6 +1082,7 @@ PHP_RSHUTDOWN_FUNCTION(imap)
                        }
                }
                mail_free_errorlist(&IMAPG(imap_errorstack));
+               IMAPG(imap_errorstack) = NIL;
        }
 
        if (IMAPG(imap_alertstack) != NIL) {