Do not swap basic globals anymore when PHP version is greater than 8.1
@@ -36,6 +36,7 @@ extern "C" {
#endif
#if PHP_VERSION_ID < 80000
#undef SWOW_COROUTINE_SWAP_JIT_GLOBALS
+#define SWOW_COROUTINE_SWAP_JIT_GLOBALS 0
#endif
#ifndef SWOW_COROUTINE_SWAP_ERROR_HANDING
#define SWOW_COROUTINE_SWAP_ERROR_HANDING 1
@@ -43,6 +44,10 @@ extern "C" {
#ifndef SWOW_COROUTINE_SWAP_BASIC_GLOBALS
#define SWOW_COROUTINE_SWAP_BASIC_GLOBALS 1
#endif
+#if PHP_VERSION_ID >= 80100
+#undef SWOW_COROUTINE_SWAP_BASIC_GLOBALS
+#define SWOW_COROUTINE_SWAP_BASIC_GLOBALS 0
+#endif
#ifndef SWOW_COROUTINE_SWAP_OUTPUT_GLOBALS
#define SWOW_COROUTINE_SWAP_OUTPUT_GLOBALS 1
#endif
