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