MySQLi_Driver类

(PHP 5, PHP 7, PHP 8)

简介

MySQLi 驱动.

类摘要

class MySQLi_Driver {
/* 属性 */
public readonly string $client_info;
public readonly string $client_version;
public readonly string $driver_version;
public readonly string $embedded;
public bool $reconnect;
public int $report_mode;
/* 方法 */
public mysqli_driver::embedded_server_start(int $start, array $arguments, array $groups): bool
mysqli_report(int $flags): bool
}

属性

client_info

客户端API头版本(比如:(string)"5.1.49")

client_version

客户端版本(比如:(int)50149)

driver_version

Mysqli驱动版本(比如:(int)101009)

embedded

是否开启了MySQLi嵌入式支持。

reconnect

允许或阻止重连接(查看INI指令中的mysqli.reconnect)

report_mode

设置为MYSQLI_REPORT_OFF, MYSQLI_REPORT_ALL或者 MYSQLI_REPORT_STRICT (为错误抛出异常,译注:需要和MYSQLI_REPORT_ERROR联合使用), MYSQLI_REPORT_ERROR (报告MYSQL错误)和 MYSQLI_REPORT_INDEX (报告索引相关的错误)的任意组合。 参阅mysqli_report().

目录

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top