PHP的异步、并行、高性能网络通信引擎Swoole 已发布 1.8.9 版本。此版本增加了命名空间别名,可在PHP代码中同时使用namespace类名或下划线风格类名。另外此版本修复了近期发现的一些BUG,其中包括数项PHP7环境下崩溃和内存泄漏的问题,提升了稳定性。建议所有用户升级至此版本。
命名空间别名:
下划线类名风格 命名空间风格
swoole_server Swoole\Server
swoole_client Swoole\Client
swoole_process Swoole\Process
swoole_timer Swoole\Timer
swoole_table Swoole\Table
swoole_lock Swoole\Lock
swoole_atomic Swoole\Atomic
swoole_buffer Swoole\Buffer
swoole_redis Swoole\Redis
swoole_event Swoole\Event
swoole_module Swoole\Module
swoole_http_server Swoole\Http\Server
swoole_http_client Swoole\Http\Client
swoole_http_request Swoole\Http\Request
swoole_http_response Swoole\Http\Response
swoole_websocket_server Swoole\WebSocket\Server
主要更新:
增加命名空间别名设置,现在命名空间类和非命名空间类可以同时使用
修复Swoole\MySQL连接某些版本MySQL服务器发生错误的问题
修复Swoole\Http\Client在回调函数中关闭连接发生崩溃的问题
增加Swoole\Http\Client->addFile接口,支持POST文件
增加Swoole\Client与Swoole\Http\Client内置socks5代理设置
修复Swoole\Http\Server在PHP7环境上传文件时偶然发生崩溃的问题
修复Swoole\MySQL在PHP7下内存泄漏问题
修复Swoole\Redis在PHP7下内存泄漏问题
修复Swoole\Http\Client在PHP7下内存泄漏问题
修复Swoole\Server启用SSL加密未输入证书密码导致崩溃的问题
增加Swoole\Http\Client对没有ContentLength的响应体的支持
增加--with-openssl编译选项,可指定openssl库的路径
下载新版本:
GITHUB:https://github.com/swoole/swoole-src/releases/tag/1.8.9-stable
开源中国:http://git.oschina.net/matyhtf/swoole/tree/1.8.9-stable
PECL:https://pecl.php.net/package/swoole/1.8.9
软件详情:http://www.swoole.com/
下载地址:https://github.com/swoole/swoole-src
来自:开源中国社区

