Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
The SWOOLE_HOOK_ALL
flag will enable all hooks within the coroutine scheduler.
Since OpenSwoole v4.5.4
this hook contains SWOOLE_HOOK_CURL
.
<?php
// After v4.5.4
Co::set(['hook_flags' => SWOOLE_HOOK_ALL]);
// All hooks including CURL, before v4.5.4
Co::set(['hook_flags' => SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL]);