Skip to content

Commit fb6e718

Browse files
committed
fix ticks init in ts build
1 parent f5c3d21 commit fb6e718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,6 +1948,7 @@ static size_t php_output_wrapper(const char *str, size_t str_length)
19481948
static void core_globals_ctor(php_core_globals *core_globals)
19491949
{
19501950
memset(core_globals, 0, sizeof(*core_globals));
1951+
php_startup_ticks();
19511952
}
19521953
/* }}} */
19531954
#endif
@@ -2106,7 +2107,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
21062107

21072108
#ifdef ZTS
21082109
ts_allocate_id(&core_globals_id, sizeof(php_core_globals), (ts_allocate_ctor) core_globals_ctor, (ts_allocate_dtor) core_globals_dtor);
2109-
php_startup_ticks();
21102110
#ifdef PHP_WIN32
21112111
ts_allocate_id(&php_win32_core_globals_id, sizeof(php_win32_core_globals), (ts_allocate_ctor) php_win32_core_globals_ctor, (ts_allocate_dtor) php_win32_core_globals_dtor);
21122112
#endif

0 commit comments

Comments
 (0)