mirror of
https://github.com/php/php-src.git
synced 2025-01-24 20:53:37 +08:00
Fixed double mutex unlock
This commit is contained in:
parent
dcccdc471d
commit
fdb7fc6153
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user