Join 4,000+ others and never miss out on new tips, tutorials, and more.
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
.
<?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]);