From 80d3db1dcf8fe9ca66d4e3f2e2116d3bc39ae2b4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 12 Jul 2022 22:26:21 +0300 Subject: upgrade idiorm to php8.1-patched version (aaronpk/idiorm) --- vendor/thecodingmachine/safe/generated/swoole.php | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'vendor/thecodingmachine/safe/generated/swoole.php') 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 @@ -4,6 +4,46 @@ namespace Safe; 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(); + } +} + + /** * * -- cgit v1.2.3-54-g00ecf