Skip to content

Commit

Permalink
Clear last error before shutting down memory manager
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikic committed Jun 26, 2020
1 parent d114812 commit afafe54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit afafe54

Please sign in to comment.