Skip to content

Commit de4248c

Browse files
committed
fix(embed): define TSRMLS cache for ZTS builds
1 parent b2572ae commit de4248c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/embed/embed.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "embed.h"
22

3+
#ifdef ZTS
4+
ZEND_TSRMLS_CACHE_DEFINE()
5+
#endif
6+
37
// We actually use the PHP embed API to run PHP code in test
48
// At some point we might want to use our own SAPI to do that
59
void* ext_php_rs_embed_callback(int argc, char** argv, void* (*callback)(void *), void *ctx) {

0 commit comments

Comments
 (0)