OpenSwoole Hook All

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.

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]);
Last updated on August 31, 2022