OpenSwoole Hook All

Latest version: pecl install openswoole-4.11.1

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 March 31, 2022