diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-25 16:12:55 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-26 09:30:08 +0200 |
commit | afafe5443ca52e5e95e6bb6a30354d1683d53378 (patch) | |
tree | 1b71490d704ba211990213765d12a4bc6fdc7fa4 | |
parent | d114812fafc8f2a7482ccb81ebee39f5d55a7890 (diff) | |
download | php-git-afafe5443ca52e5e95e6bb6a30354d1683d53378.tar.gz |
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.
-rw-r--r-- | main/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |