OpenSwoole Hook All

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

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 September 20, 2022