From 66dd91bb972e06b9f15aad612fdb52954558f3aa Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 17 Oct 2021 23:55:02 +0800 Subject: [PATCH] update to 2.5.6 (build 423) --- docs/update/v2.md | 6 ++++++ src/ZM/ConsoleApplication.php | 4 ++-- src/ZM/MySQL/MySQLStatement.php | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/update/v2.md b/docs/update/v2.md index f494a74a..2b1d7d6c 100644 --- a/docs/update/v2.md +++ b/docs/update/v2.md @@ -1,5 +1,11 @@ # 更新日志(v2 版本) +## v2.5.6 (build 423) + +> 更新时间:2021.10.17 + +- 修复 PHP 7.2 ~ 7.3 下无法使用新版 MySQL 组件的 bug + ## v2.5.5 (build 422) > 更新时间:2021.10.6 diff --git a/src/ZM/ConsoleApplication.php b/src/ZM/ConsoleApplication.php index 6c6fe135..9dc36130 100644 --- a/src/ZM/ConsoleApplication.php +++ b/src/ZM/ConsoleApplication.php @@ -28,8 +28,8 @@ class ConsoleApplication extends Application { private static $obj = null; - const VERSION_ID = 422; - const VERSION = "2.5.5"; + const VERSION_ID = 423; + const VERSION = "2.5.6"; /** * @throws InitException diff --git a/src/ZM/MySQL/MySQLStatement.php b/src/ZM/MySQL/MySQLStatement.php index b0838519..d32fd63e 100644 --- a/src/ZM/MySQL/MySQLStatement.php +++ b/src/ZM/MySQL/MySQLStatement.php @@ -7,11 +7,12 @@ namespace ZM\MySQL; use Doctrine\DBAL\Driver\Statement; use Doctrine\DBAL\Driver\StatementIterator; use Doctrine\DBAL\ParameterType; +use IteratorAggregate; use PDO; use PDOStatement; use Swoole\Database\PDOStatementProxy; -class MySQLStatement implements Statement, \IteratorAggregate +class MySQLStatement implements IteratorAggregate, Statement { /** @var PDOStatement|PDOStatementProxy */ private $statement;