对本扩展的类/函数/方法有以下更新。
Version | Function | Description |
---|---|---|
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。 |