Statement on glibc/iconv Vulnerability

mysqli::$client_version

mysqli_get_client_version

(PHP 5, PHP 7, PHP 8)

mysqli::$client_version -- mysqli_get_client_version作为整数返回 MySQL 客户端的版本

说明

面向对象风格

过程化风格

mysqli_get_client_version(): int

作为整数返回客户端版本号。

参数

此函数没有参数。

返回值

表示 MySQL 客户端库版本的数字,格式为 main_version*10000 + minor_version *100 + sub_version。例如:4.1.0 返回 40100。

这有助于快速确定客户端库的版本来辨别是否有某些特性存在。

示例

示例 #1 mysqli_get_client_version

<?php

/* We don't need a connection to determine
the version of mysql client library */

printf("Client library version: %d\n", mysqli_get_client_version());
?>

参见

add a note

User Contributed Notes

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