Skip to content

Commit 990d4aa

Browse files
authored
swoole v6 : fix multiple definition of _tsrm_ls_cache on swoole-cli (#5368)
* disable TSRMLS_CACHE_DEFINE() * with TSRMLS_CACHE_EXTERN() replace TSRMLS_CACHE_DEFINE() * fix multiple definition of `_tsrm_ls_cache` * fix multiple definition of `_tsrm_ls_cache`
1 parent dd30832 commit 990d4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext-src/swoole_thread.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static struct {
4343
int argc;
4444
} request_info;
4545

46-
TSRMLS_CACHE_DEFINE();
46+
TSRMLS_CACHE_EXTERN();
4747

4848
typedef std::thread Thread;
4949

0 commit comments

Comments
 (0)