# defender-security/5.3.1/vendor/thecodingmachine/safe/generated/rrd.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.3.1. 24 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.3.1/code/vendor/thecodingmachine/safe/generated/rrd.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.3.1/raw/vendor/thecodingmachine/safe/generated/rrd.php
- Modified: 2022-06-13T09:01:40+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/5.3.1/code/vendor/thecodingmachine/safe/generated/rrd.php#L10-L20`.

```php
<?php

namespace Safe;

use Safe\Exceptions\RrdException;

/**
 * Creates the rdd database file.
 *
 * @param string $filename Filename for newly created rrd file.
 * @param array $options Options for rrd create - list of strings. See man page of rrd create
 * for whole list of options.
 * @throws RrdException
 *
 */
function rrd_create(string $filename, array $options): void
{
    error_clear_last();
    $result = \rrd_create($filename, $options);
    if ($result === false) {
        throw RrdException::createFromPhpError();
    }
}

```
