# defender-security/3.1.0/vendor/thecodingmachine/safe/generated/xmlrpc.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 3.1.0. 23 lines.

- Page: https://pluginprobe.com/plugins/defender-security/3.1.0/code/vendor/thecodingmachine/safe/generated/xmlrpc.php
- Raw: https://pluginprobe.com/plugins/defender-security/3.1.0/raw/vendor/thecodingmachine/safe/generated/xmlrpc.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/3.1.0/code/vendor/thecodingmachine/safe/generated/xmlrpc.php#L10-L20`.

```php
<?php

namespace Safe;

use Safe\Exceptions\XmlrpcException;

/**
 * Sets xmlrpc type, base64 or datetime, for a PHP string value.
 *
 * @param string|\DateTime $value Value to set the type
 * @param string $type 'base64' or 'datetime'
 * @throws XmlrpcException
 *
 */
function xmlrpc_set_type(&$value, string $type): void
{
    error_clear_last();
    $result = \xmlrpc_set_type($value, $type);
    if ($result === false) {
        throw XmlrpcException::createFromPhpError();
    }
}

```
