update to 2.6.4 (build 432)

This commit is contained in:
crazywhalecc
2021-12-25 19:21:41 +08:00
parent 3ed1cb665a
commit 74050c46e7
10 changed files with 215 additions and 53 deletions

View File

@@ -487,7 +487,7 @@ class Framework
}
}
$global_hook = ZMConfig::get("global", 'runtime')['swoole_coroutine_hook_flags'] ?? (SWOOLE_HOOK_ALL & (~SWOOLE_HOOK_CURL));
if ($coroutine_mode && $global_hook === false) Runtime::enableCoroutine(true, $global_hook);
if ($coroutine_mode) Runtime::enableCoroutine(true, $global_hook);
else Runtime::enableCoroutine(false, SWOOLE_HOOK_ALL);
}