From: Nikita Popov Date: Thu, 25 Jun 2020 14:12:55 +0000 (+0200) Subject: Clear last error before shutting down memory manager X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afafe5443ca52e5e95e6bb6a30354d1683d53378;p=php Clear last error before shutting down memory manager The last error is allocated using ZMM, make sure it's cleared beforehand. It would probably be better to allocate it persistently outside of requests. --- diff --git a/main/main.c b/main/main.c index ae6b539ba2..90fec668dd 100644 --- a/main/main.c +++ b/main/main.c @@ -2449,6 +2449,7 @@ void php_module_shutdown(void) /* close down the ini config */ php_shutdown_config(); + clear_last_error(); #ifndef ZTS zend_ini_shutdown();