Skip to content

Commit afafe54

Browse files
committed
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.
1 parent d114812 commit afafe54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,6 +2449,7 @@ void php_module_shutdown(void)
24492449

24502450
/* close down the ini config */
24512451
php_shutdown_config();
2452+
clear_last_error();
24522453

24532454
#ifndef ZTS
24542455
zend_ini_shutdown();

0 commit comments

Comments
 (0)