Swoole v4.5.5 版本发布,增加配置项检测

码农天地 -
Swoole v4.5.5 版本发布,增加配置项检测

此版本增加了配置项检测功能,如果设置了不是 Swoole 提供的选项,会产生一个 Warning。

PHP Warning:  unsupported option [foo] in @swoole-src/library/core/Server/Helper.php
$http = new Swoole\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("<h1>Hello Swoole. #".rand(1000, 9999)."</h1>");
});

$http->start();
新增 API增加 Process\Manager,修改 Process\ProcessManager 为别名 (swoole/library#eac1ac5) (@matyhtf)支持 HTTP2 服务器 GOAWAY (#3710) (@doubaokun)增加 Co\map()函数 (swoole/library#57) (@leocavalcante)增强支持 http2 unix socket 客户端 (#3668) (@sy-records)当 worker 进程退出之后设置 worker 进程状态为 SW_WORKER_EXIT (#3724) (@matyhtf)在 Server::getClientInfo()的返回值中增加 send_queued_bytes 和 recv_queued_bytes (#3721) (#3731) (@matyhtf) (@Yurunsoft)Server 支持 stats_file 配置选项 (#3725) (@matyhtf) (@Yurunsoft)修复修复 PHP8 下的编译问题 (zend_compile_string change) (#3670) (@twose)修复 PHP8 下的编译问题 (ext/sockets compatibility) (#3684) (@twose)修复 PHP8 下的编译问题 (php_url_encode_hash_ex change) (#3713) (@remicollet)修复从'const char' to 'char'的错误类型转化 (#3686) (@remicollet)修复 HTTP2 client 在 HTTP proxy 下无法工作的问题 (#3677) (@matyhtf) (@twose)修复 PDO 断线重连时数据混乱的问题 (swoole/library#54) (@sy-records)修复 UDP Server 使用 ipv6 时端口解析错误修复 Lock::lockwait 超时无效的问题

特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。

php介绍

PHP即“超文本预处理器”,是一种通用开源脚本语言。PHP是在服务器端执行的脚本语言,与C语言类似,是常用的网站编程语言。PHP独特的语法混合了C、Java、Perl以及 PHP 自创的语法。利于学习,使用广泛,主要适用于Web开发领域。

Tags 标签

swoolephp

扩展阅读

加个好友,技术交流

1628738909466805.jpg