diff options
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/xmlrpc.php')
-rw-r--r-- | vendor/thecodingmachine/safe/generated/xmlrpc.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/thecodingmachine/safe/generated/xmlrpc.php b/vendor/thecodingmachine/safe/generated/xmlrpc.php new file mode 100644 index 000000000..15364fb4a --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/xmlrpc.php @@ -0,0 +1,22 @@ +<?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(); + } +} |