com php-src: End output handlers in preload shutdown: ext/opcache/ZendAccelerator.c

From: Date: Wed, 04 Nov 2020 15:05:24 +0000
Subject: com php-src: End output handlers in preload shutdown: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114068@lists.php.net to get a copy of this message
Commit: 7c7c6b0d73a4c8047b6197d27729fef1de81afdd Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 4 Nov 2020 16:03:39 +0100 Parents: 73321bc300c808346b2d00ec1bc513447a5d579b Branches: PHP-8.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7c7c6b0d73a4c8047b6197d27729fef1de81afdd Log: 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. Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 4d2fbb71303..3a1c538c80f 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 */

« previous php.cvs (#114068) next »