Swoole Hook All

Notice: the documentation is suitable for PHP extension swoole until v4.7.1, we only support PHP extension openswoole from v4.7.1

The SWOOLE_HOOK_ALL flag will enable all hooks within the coroutine scheduler.

Since v4.5.4 this hook contains SWOOLE_HOOK_CURL.

Example

<?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]);