Swoole 4.5.0 is available! One thing that is not mentioned in the notes there is that the \Swoole\Server::getInstance() got removed as it was considered that not every code/library should have access to the Server instance. Instead now only the worker ID is available through \Swoole\Server::getWorkerId(). There is a bug though and this method can not be called statically (and in dynamic context there is the $server->worker_id).
A new docker image is available: kenashkov/php:7.4.5-swoole-4.5.0
Veselin Kenashkov
Developer at Azonmedia
Loves PHP, frameworks and old computers. Currently interested in Swoole and Vuejs.
Latest posts by Veselin Kenashkov (see all)
- CentOS roadmap changes already made impact - December 12, 2020
- Docker image with Apache 2.2 and PHP 5.3 - September 26, 2020
- Emulation and virtualization guides - September 24, 2020
Share if you liked it