# 更新日志

对本扩展的类／函数／方法有以下更新。

Version | Function | Description
--- | --- | ---
8.4.0 | mysqli::kill | mysqli::kill 和 mysqli_kill 都已弃用。使用 KILL SQL 命令代替。
| mysqli::ping | mysqli::ping 和 mysqli_ping 都已弃用。自 PHP 8.2.0 起，reconnect 功能已不可用，因此该函数已过时。
| mysqli::refresh | mysqli::refresh 和 mysqli_refresh 都已弃用。使用 FLUSH SQL 命令代替。
| mysqli::store_result | 现在弃用传递 mode 参数。该参数自 PHP 8.1.0 起不再有效。
8.3.0 | mysqli_result::fetch_object | Now throws a ValueError exception when the constructor_args is non-empty with the class not having constructor; previously an Exception was thrown.
| mysqli::poll | 现在，当没有传递 read 和 error 参数时抛出 ValueError 异常。
8.1.0 | mysqli_driver::$report_mode | The default value is now MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT. Previously, it was MYSQLI_REPORT_OFF.
| mysqli_result::fetch_all | Now also available when linking against libmysqlclient.
| mysqli_stmt::execute | The optional params parameter has been added.
| mysqli_stmt::next_result | Now also available when linking against libmysqlclient.
| mysqli::__construct | mysqli::connect now returns true instead of null on success.
| mysqli::$client_info | 弃用使用 mysql 参数调用 mysqli_get_client_info。此函数从不需要参数，但错误的允许其作为可选参数。
| mysqli::$client_info | 弃用面向对象风格的 mysqli::get_client_info。
| mysqli::init | 弃用面向对象风格的 mysqli::init 方法。用 parent::__construct 替换对 parent::init 的调用。
8.0.0 | mysqli_result::fetch_object | constructor_args now accepts [] for constructors with 0 parameters; previously an exception was thrown.
| mysqli_result::field_seek | This function now always returns true. Previously it returned false on failure.
| mysqli_stmt::close | This function now always returns true. Previously it returned false on failure.
| mysqli_stmt::__construct | query is now nullable.
| mysqli::begin_transaction | name is now nullable.
| mysqli::close | 此函数始终返回 true。之前失败时返回 false。
| mysqli::commit | name 现在允许为 null。
| mysqli::debug | This function now always returns true. Previously it returned false on failure.
| mysqli::rollback | name 现在可以为 null。
7.4.0 | mysqli::__construct | All parameters are now nullable.
| mysqli::real_connect | 所有的参数都可为 null。

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open