diff options
author | Andrew Dolgov <[email protected]> | 2022-07-12 22:26:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-12 22:26:21 +0300 |
commit | 80d3db1dcf8fe9ca66d4e3f2e2116d3bc39ae2b4 (patch) | |
tree | 04b33bfb9c9368c4a31e287153abec690b9014e0 /vendor/thecodingmachine/safe/generated/swoole.php | |
parent | 4b6161892000cb2b8392dce92a9cf2cabdf2d20e (diff) |
upgrade idiorm to php8.1-patched version (aaronpk/idiorm)
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/swoole.php')
-rw-r--r-- | vendor/thecodingmachine/safe/generated/swoole.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/thecodingmachine/safe/generated/swoole.php b/vendor/thecodingmachine/safe/generated/swoole.php index 334d96bd9..a9c3ff3e6 100644 --- a/vendor/thecodingmachine/safe/generated/swoole.php +++ b/vendor/thecodingmachine/safe/generated/swoole.php @@ -7,6 +7,46 @@ use Safe\Exceptions\SwooleException; /** * * + * @param string $hostname The host name. + * @param callable $callback The host name. + * + * The IP address. + * @throws SwooleException + * + */ +function swoole_async_dns_lookup(string $hostname, callable $callback): void +{ + error_clear_last(); + $result = \swoole_async_dns_lookup($hostname, $callback); + if ($result === false) { + throw SwooleException::createFromPhpError(); + } +} + + +/** + * + * + * @param string $filename The filename of the file being read. + * @param string $callback The name of the file. + * + * The content read from the file. + * @throws SwooleException + * + */ +function swoole_async_readfile(string $filename, string $callback): void +{ + error_clear_last(); + $result = \swoole_async_readfile($filename, $callback); + if ($result === false) { + throw SwooleException::createFromPhpError(); + } +} + + +/** + * + * * @param string $filename The filename being written. * @param string $content The content writing to the file. * @param int $offset The offset. |