com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Wed, 22 May 2019 21:21:15 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106300@lists.php.net to get a copy of this message | ||
Commit: 5de750f41c1ee3ed834ebf4f811ba03a6cc2d9bc
Author: Dmitry Stogov <dmitry@zend.com> Thu, 23 May 2019 00:21:15 +0300
Parents: fe1db0c3d75a05aa1936a3cf071bcd520840dd7d d4867e099e7f0919bd7897d1303c0d00671509cc
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5de750f41c1ee3ed834ebf4f811ba03a6cc2d9bc
Log:
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fixed race condition in opcache restart
Changed paths:
MM ext/opcache/ZendAccelerator.c
Diff:
diff --cc ext/opcache/ZendAccelerator.c
index 7824ff9,6f76fc9..2162718
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@@ -2273,12 -2308,15 +2273,10 @@@ static void accel_reset_pcre_cache(void
} ZEND_HASH_FOREACH_END();
}
-static void accel_activate(void)
+int accel_activate(INIT_FUNC_ARGS)
{
- zend_bool reset_pcre = 0;
-
if (!ZCG(enabled) || !accel_startup_ok) {
- return;
- }
-
- if (!ZCG(function_table).nTableSize) {
- zend_hash_init(&ZCG(function_table), zend_hash_num_elements(CG(function_table)), NULL,
ZEND_FUNCTION_DTOR, 1);
- zend_accel_copy_internal_functions();
+ return SUCCESS;
}
/* PHP-5.4 and above return "double", but we use 1 sec precision */