更新日志

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

VersionFunctionDescription
8.1.0mysqli_driver::$report_modeThe default value is now MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT. Previously, it was MYSQLI_REPORT_OFF.
 mysqli_result::fetch_allNow also available when linking against libmysqlclient.
 mysqli_stmt::executeThe optional params parameter has been added.
 mysqli_stmt::next_resultNow also available when linking against libmysqlclient.
 mysqli::__constructmysqli::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.0mysqli_result::fetch_objectconstructor_args now accepts [] for constructors with 0 parameters; previously an exception was thrown.
 mysqli_result::field_seekThis function now always returns true. Previously it returned false on failure.
 mysqli_stmt::closeThis function now always returns true. Previously it returned false on failure.
 mysqli_stmt::__constructquery is now nullable.
 mysqli::begin_transactionname is now nullable.
 mysqli::close此函数始终返回 true。之前失败时返回 false。
 mysqli::commitname 现在允许为 null。
 mysqli::debugThis function now always returns true. Previously it returned false on failure.
 mysqli::rollbackname 现在可以为 null。
7.4.0mysqli::__constructAll parameters are now nullable.
 mysqli::real_connect所有的参数都可为 null。