Skip to content

Commit

Permalink
swoole v6 : fix multiple definition of _tsrm_ls_cache on swoole-cli (#…
Browse files Browse the repository at this point in the history
…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`
  • Loading branch information
jingjingxyk committed Jun 11, 2024
1 parent dd30832 commit 990d4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext-src/swoole_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static struct {
int argc;
} request_info;

TSRMLS_CACHE_DEFINE();
TSRMLS_CACHE_EXTERN();

typedef std::thread Thread;

Expand Down

0 comments on commit 990d4aa

Please sign in to comment.