1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  move id initialization into ctor
This commit is contained in:
Anatol Belski
2017-01-30 11:41:59 +01:00
+3 -5
View File
@@ -2094,11 +2094,6 @@ static void accel_activate(void)
ZCG(cwd_key_len) = 0;
ZCG(cwd_check) = 1;
#ifdef ZTS
/* TODO refactor to init this just once. */
accel_gen_system_id();
#endif
#ifdef HAVE_OPCACHE_FILE_CACHE
if (ZCG(accel_directives).file_cache_only) {
return;
@@ -2564,6 +2559,9 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
ZEND_TSRMLS_CACHE_UPDATE();
#endif
memset(accel_globals, 0, sizeof(zend_accel_globals));
/* TODO refactor to init this just once. */
accel_gen_system_id();
}
static void accel_globals_internal_func_dtor(zval *zv)