Skip to content

Commit b2572ae

Browse files
committed
fix(embed): update TSRMLS cache on all platforms in per-thread init
1 parent 2b1c3e5 commit b2572ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/embed/embed.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ SAPI_API void ext_php_rs_sapi_shutdown() {
3838
SAPI_API void ext_php_rs_sapi_per_thread_init() {
3939
#ifdef ZTS
4040
(void)ts_resource(0);
41-
#ifdef PHP_WIN32
42-
ZEND_TSRMLS_CACHE_UPDATE();
43-
#endif
41+
ZEND_TSRMLS_CACHE_UPDATE();
4442
#endif
4543
}
4644

0 commit comments

Comments
 (0)