com php-src: Fixed double mutex unlock: ext/opcache/ZendAccelerator.c

From: Date: Thu, 23 May 2019 08:20:46 +0000
Subject: com php-src: Fixed double mutex unlock: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106303@lists.php.net to get a copy of this message
Commit: fdb7fc6153cfa8788d11e3dc74bc4f899bcdd42a Author: Dmitry Stogov <dmitry@zend.com> Thu, 23 May 2019 11:20:46 +0300 Parents: dcccdc471d7c6794ff9b13d3dc9c248bf7c16da9 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fdb7fc6153cfa8788d11e3dc74bc4f899bcdd42a Log: Fixed double mutex unlock Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 2162718..6fd341e 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -4255,9 +4255,10 @@ static int accel_finish_startup(void) orig_report_memleaks = PG(report_memleaks); PG(report_memleaks) = 0; - php_request_shutdown(NULL); + php_request_shutdown(NULL); /* calls zend_shared_alloc_unlock(); */ PG(report_memleaks) = orig_report_memleaks; } else { + zend_shared_alloc_unlock(); ret = FAILURE; } #ifdef ZEND_SIGNALS @@ -4274,8 +4275,6 @@ static int accel_finish_startup(void) sapi_module.ub_write = orig_ub_write; sapi_module.flush = orig_flush; - zend_shared_alloc_unlock(); - sapi_activate(); return ret;

« previous php.cvs (#106303) next »