Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

19
vendor/swoole/examples/async/read.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php
//ini_set("swoole.aio_mode", 1);
swoole_async_read(
__DIR__ . '/data.txt',
function ($filename, $content)
{
echo "file: $filename\ncontent-length: " . strlen($content) . "\nContent: $content\n";
if (empty($content))
{
echo "file is end.\n";
return false;
}
else
{
return true;
}
},
8192
);