# defender-security/6.3.0/lib/packages/Safe/generated/mysqli.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.3.0. 43 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Safe/generated/mysqli.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.3.0/raw/lib/packages/Safe/generated/mysqli.php
- Modified: 2026-08-24T08:19:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Safe/generated/mysqli.php#L10-L20`.

```php
<?php

namespace WP_DEFENDER_VENDOR\Safe;

use WP_DEFENDER_VENDOR\Safe\Exceptions\MysqliException;

/**
 * Returns an empty array.
 * Available only with mysqlnd.
 *
 * @return array Returns an empty array on success, FALSE otherwise.
 * @throws MysqliException
 *
 */
function mysqli_get_cache_stats(): array
{
    error_clear_last();
    $result = \mysqli_get_cache_stats();
    if ($result === false) {
        throw MysqliException::createFromPhpError();
    }
    return $result;
}


/**
 * Returns client per-process statistics.
 * Available only with mysqlnd.
 *
 * @return array Returns an array with client stats if success, FALSE otherwise.
 * @throws MysqliException
 *
 */
function mysqli_get_client_stats(): array
{
    error_clear_last();
    $result = \mysqli_get_client_stats();
    if ($result === false) {
        throw MysqliException::createFromPhpError();
    }
    return $result;
}

```
