diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-04 16:03:39 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-04 16:05:24 +0100 |
commit | 7c7c6b0d73a4c8047b6197d27729fef1de81afdd (patch) | |
tree | 5edc5d01f43fbff1b369558860bc696bbc898547 /ext/opcache/ZendAccelerator.c | |
parent | 73321bc300c808346b2d00ec1bc513447a5d579b (diff) | |
download | php-git-7c7c6b0d73a4c8047b6197d27729fef1de81afdd.tar.gz |
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.
Diffstat (limited to 'ext/opcache/ZendAccelerator.c')
-rw-r--r-- | ext/opcache/ZendAccelerator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 4d2fbb7130..3a1c538c80 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -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 */ |