mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add Safe PHP functions
This commit is contained in:
parent
04a956886a
commit
58cc098058
260 changed files with 49458 additions and 45 deletions
22
vendor/thecodingmachine/safe/generated/xmlrpc.php
vendored
Normal file
22
vendor/thecodingmachine/safe/generated/xmlrpc.php
vendored
Normal file
|
@ -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(string &$value, string $type): void
|
||||
{
|
||||
error_clear_last();
|
||||
$result = \xmlrpc_set_type($value, $type);
|
||||
if ($result === false) {
|
||||
throw XmlrpcException::createFromPhpError();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue