Skip to content

Commit a75e612

Browse files
authored
Fix tsrmls cache init bug
1 parent cf6360c commit a75e612

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ext/opentelemetry.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ PHP_MINFO_FUNCTION(opentelemetry) {
166166
}
167167

168168
PHP_GINIT_FUNCTION(opentelemetry) {
169+
#if defined(ZTS) && defined(COMPILE_DL_OPENTELEMETRY)
170+
ZEND_TSRMLS_CACHE_UPDATE();
171+
#endif
169172
ZEND_SECURE_ZERO(opentelemetry_globals, sizeof(*opentelemetry_globals));
170173
}
171174

0 commit comments

Comments
 (0)