Swoole 4.5.0

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

Find me at

Veselin Kenashkov

Developer at Azonmedia
Loves PHP, frameworks and old computers. Currently interested in Swoole and Vuejs.
Veselin Kenashkov
Find me at

Latest posts by Veselin Kenashkov (see all)

Share if you liked it

Leave a Reply

Your email address will not be published. Required fields are marked *