Skip to content

Commit f2c99e2

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: move id initialization into ctor
2 parents 2a5a310 + 4b1afc8 commit f2c99e2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,11 +2094,6 @@ static void accel_activate(void)
20942094
ZCG(cwd_key_len) = 0;
20952095
ZCG(cwd_check) = 1;
20962096

2097-
#ifdef ZTS
2098-
/* TODO refactor to init this just once. */
2099-
accel_gen_system_id();
2100-
#endif
2101-
21022097
#ifdef HAVE_OPCACHE_FILE_CACHE
21032098
if (ZCG(accel_directives).file_cache_only) {
21042099
return;
@@ -2564,6 +2559,9 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
25642559
ZEND_TSRMLS_CACHE_UPDATE();
25652560
#endif
25662561
memset(accel_globals, 0, sizeof(zend_accel_globals));
2562+
2563+
/* TODO refactor to init this just once. */
2564+
accel_gen_system_id();
25672565
}
25682566

25692567
static void accel_globals_internal_func_dtor(zval *zv)

0 commit comments

Comments
 (0)