End output handlers in preload shutdown

Same as in php_request_shutdown(), we need to end any active
output handlers, as these may no longer be safe to execute
lateron.
This commit is contained in:
Nikita Popov 2020-11-04 16:03:39 +01:00
parent 73321bc300
commit 7c7c6b0d73

View File

@ -4519,6 +4519,7 @@ static int accel_preload(const char *config, zend_bool in_child)
php_call_shutdown_functions();
zend_call_destructors();
php_output_end_all();
php_free_shutdown_functions();
/* Release stored values to avoid dangling pointers */