v5.0.0
Minimum PHP version requirement is
8.0
Added
- Added
max_concurrencyoption for Server - Added
max_retriesoption for Coroutine\Http\Client - Added
name_resolverglobal option - Added
upload_max_filesizeoption for Server - Added
Coroutine::getExecuteTime() - Added SWOOLE_DISPATCH_CONCURRENT_LB dispatch_mode for Server
Changed
- Enhanced type system, added types for parameters and return values of all functions
- Optimized error handling, all constructors will throw exceptions when fail
- Adjusted the default mode of Server, the default is SWOOLE_BASE mode
- Migrate pgsql coroutine client to core
- Contains all bugfixes from the 4.8.x branch
Removed
- Removed PSR-0 style class names
- Removed the automatic addition of
Event::wait()in shutdown function - Removed
Server::tick/after/clearTimer/deferaliases - Removed
--enable-http2/--enable-swoole-json, adjusted to be enable by default
Deprecated
- Deprecated
Coroutine\RedisandCoroutine\MySQL