OpenSwoole Hook All

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

The OpenSwoole\Runtime::HOOK_ALL flag will enable all hooks within the coroutine context.

Since OpenSwoole v4.5.4 this hook contains OpenSwoole\Runtime::HOOK_CURL.

Example

<?php

Co::set(['hook_flags' => OpenSwoole\Runtime::HOOK_ALL]);

// All hooks but not including CURL
Co::set(['hook_flags' => OpenSwoole\Runtime::HOOK_ALL ^ OpenSwoole\Runtime::HOOK_CURL]);
Last updated on February 28, 2026