add constant for testing fs

This commit is contained in:
Shuhei Tanuma 2012-07-05 22:54:10 +09:00
parent 5eb1541762
commit 7c4139377a

View File

@ -2,19 +2,14 @@
Check for fs event
--FILE--
<?php
/* WIP
define("DIRECTORY_PATH", dirname(__FILE__) . "/fixtures/example_directory");
/*
$ev = uv_fs_event_init(uv_default_loop(),dirname(DIRECTORY_PATH), function($rsc, $name, $event, $stat) {
echo "stat: " . $stat . PHP_EOL;
var_dump($rsc);
uv_close($rsc, function(){
});
sleep(1);
echo "finished" . PHP_EOL;
uv_close($rsc);
},0);
uv_fs_mkdir(uv_default_loop(), DIRECTORY_PATH, 0755, function($result){
var_dump($result);
echo "finished" . PHP_EOL;
@rmdir(DIRECTORY_PATH);
});