mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-27 04:24:45 +01:00
515e4071fa
TODO: obtain file handle from php_uv resource.
10 lines
199 B
PHP
10 lines
199 B
PHP
<?php
|
|
|
|
uv_fs_open(uv_default_loop(),__FILE__,UV::O_RDONLY,0, function($read_fd){
|
|
$stdout = 0;
|
|
uv_fs_sendfile(uv_default_loop(),$stdout,$read_fd,0,6, function($result){
|
|
});
|
|
});
|
|
|
|
uv_run();
|