mirror of
https://github.com/danog/ext-uv.git
synced 2024-12-02 09:27:58 +01:00
14 lines
268 B
PHP
14 lines
268 B
PHP
|
<?php
|
||
|
|
||
|
uv_fs_open(uv_default_loop(),"./tmp", UV::O_WRONLY,
|
||
|
UV::S_IRWXU | UV::S_IRUSR,
|
||
|
function($r){
|
||
|
var_dump($r);
|
||
|
uv_fs_ftruncate(uv_default_loop(),$r,0, function() use ($r){
|
||
|
uv_fs_close(uv_default_loop(),$r,function(){});
|
||
|
});
|
||
|
});
|
||
|
|
||
|
|
||
|
uv_run();
|