We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7e546 commit 4b1afc8Copy full SHA for 4b1afc8
ext/opcache/ZendAccelerator.c
@@ -2080,11 +2080,6 @@ static void accel_activate(void)
2080
ZCG(cwd_key_len) = 0;
2081
ZCG(cwd_check) = 1;
2082
2083
-#ifdef ZTS
2084
- /* TODO refactor to init this just once. */
2085
- accel_gen_system_id();
2086
-#endif
2087
-
2088
#ifdef HAVE_OPCACHE_FILE_CACHE
2089
if (ZCG(accel_directives).file_cache_only) {
2090
return;
@@ -2548,6 +2543,9 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
2548
2543
ZEND_TSRMLS_CACHE_UPDATE();
2549
2544
#endif
2550
2545
memset(accel_globals, 0, sizeof(zend_accel_globals));
2546
+
2547
+ /* TODO refactor to init this just once. */
+ accel_gen_system_id();
2551
}
2552
2553
static void accel_globals_internal_func_dtor(zval *zv)
0 commit comments