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

10
vendor/swoole/examples/async/readfile.php vendored Executable file
View File

@ -0,0 +1,10 @@
<?php
swoole_async::set(['aio_mode' => SWOOLE_AIO_LINUX]);
swoole_async_readfile(__DIR__.'/../test.jpg', function($filename, $content){
echo "file: $filename\ncontent-length: ".strlen($content)."\nContent:\n";
swoole_async_writefile(__DIR__.'/test.copy', $content, function($write_file) {
echo "file: $write_file\n";
swoole_event_exit();
});
});