当前位置: 首页 > 后端技术 > PHP

Swoolev4.5.5发布,增加配置项检测

时间:2023-03-30 01:49:18 PHP

该版本增加了配置项检测功能,如果设置了非Swoole提供的选项,会产生Warning。PHP警告:@swoole-src/library/core/Server/Helper.php中不支持的选项[foo]$http=newSwoole\Http\Server('0.0.0.0',9501);$http->set(['foo'=>'bar']);$http->on('request',function($request,$response){$response->header("Content-Type","text/html;charset=utf-8");$response->end("

HelloSwoole.#".rand(1000,9999)."

");});$http->开始();新增APIProcess\Manager,修改Process\ProcessManager为别名(swoole/library#eac1ac5)(@matyhtf)支持HTTP2serverGOAWAY(#3710)(@doubaokun)添加Co\m??ap()函数(swoole/library#57)(@leocavalcante)增强对http2unixsocketclient的支持(#3668)(@sy-records)worker进程退出后设置worker进程状态为SW_WORKER_EXIT(#3724)(@matyhtf)Server的返回值增加send_queued_bytes::getClientInfo()andrecv_queued_bytes(#3721)(#3731)(@matyhtf)(@Yurunsoft)服务器支持stats_file配置选项(#3725)(@matyhtf)(@Yurunsoft)修复PHP8下的编译问题(zend_compile_stringchange)(#3670)(@twose)修复PHP8下的编译问题(ext/socketscompatibility)(#3684)(@twose)修复PHP8下的编译问题(php_url_encode_hash_exchange)(#3713)(@remicollet)修复从'constchar'到'char'的错误类型转换(#3686)(@remicollet)修复HTTP2client在HTTPproxy下无法工作的问题(#3677)(@matyhtf)(@twose)修复PDO断线重连时数据混乱的问题(swoole/library#54)(@sy-records)修复UDPServer使用ipv6时端口解析错误FixLock::lockwaitinvalidtimeout