我们$mysqli -> options()可以设置一些选项:https://www.php.net/manual/en/mysqli.options.php但是,我如何获取/打印某些配置的值:MYSQLI_OPT_CONNECT_TIMEOUT、MYSQLI_OPT_SSL_VERIFY_SERVER_CERT 或 MYSQLI_OPT_LOCAL_INFILE?和print_r(get_object_vars($mysqli));我们只得到Array(
[affected_rows] =>
[client_info] =>
[client_version] =>
[connect_errno] =>
[connect_error] =>
[errno] =>
[error] =>
[error_list] =>
[field_count] =>
[host_info] =>
[info] =>
[insert_id] =>
[server_info] =>
[server_version] =>
[sqlstate] =>
[protocol_version] =>
[thread_id] =>
[warning_count] =>
)但我的目标是获取 MYSQLI_OPT_CONNECT_TIMEOUT、MYSQLI_OPT_SSL_VERIFY_SERVER_CERT、MYSQLI_OPT_LOCAL_INFILE 和其他参数的当前值。
- 1 回答
- 0 关注
- 90 浏览
添加回答
举报
0/150
提交
取消