mirror of
https://github.com/danog/ext-uv.git
synced 2025-01-23 05:41:16 +01:00
15 lines
275 B
PHP
15 lines
275 B
PHP
<?php
|
|
|
|
uv_fs_open(uv_default_loop(),"./tmp", UV::O_WRONLY | UV::O_CREAT | UV::O_APPEND,
|
|
UV::S_IRWXU | UV::S_IRUSR,
|
|
function($r){
|
|
var_dump($r);
|
|
uv_fs_write(uv_default_loop(),$r,"hello",function($a){
|
|
var_dump($a);
|
|
var_dump("ok");
|
|
});
|
|
});
|
|
|
|
|
|
uv_run();
|