Skip to content

Commit 53b7ced

Browse files
authored
1 parent a75e612 commit 53b7ced

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ext/opentelemetry.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ PHP_RSHUTDOWN_FUNCTION(opentelemetry) {
138138
}
139139

140140
PHP_MINIT_FUNCTION(opentelemetry) {
141+
#if defined(ZTS) && defined(COMPILE_DL_OPENTELEMETRY)
142+
ZEND_TSRMLS_CACHE_UPDATE();
143+
#endif
144+
141145
REGISTER_INI_ENTRIES();
142146

143147
check_conflicts();
@@ -166,9 +170,6 @@ PHP_MINFO_FUNCTION(opentelemetry) {
166170
}
167171

168172
PHP_GINIT_FUNCTION(opentelemetry) {
169-
#if defined(ZTS) && defined(COMPILE_DL_OPENTELEMETRY)
170-
ZEND_TSRMLS_CACHE_UPDATE();
171-
#endif
172173
ZEND_SECURE_ZERO(opentelemetry_globals, sizeof(*opentelemetry_globals));
173174
}
174175

0 commit comments

Comments
 (0)