2012-07-04 02:40:06 +02:00
|
|
|
--TEST--
|
|
|
|
Check for fs event
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2012-07-05 15:54:10 +02:00
|
|
|
define("DIRECTORY_PATH", dirname(__FILE__) . "/fixtures/example_directory");
|
|
|
|
/*
|
2015-01-18 02:58:40 +01:00
|
|
|
$ev = uv_fs_event_init(uv_default_loop(), dirname(DIRECTORY_PATH), function($rsc, $name, $event, $stat) {
|
2012-07-05 15:54:10 +02:00
|
|
|
echo "finished" . PHP_EOL;
|
|
|
|
uv_close($rsc);
|
2015-01-18 02:58:40 +01:00
|
|
|
}, 0);
|
2012-07-04 02:40:06 +02:00
|
|
|
|
2015-01-18 02:58:40 +01:00
|
|
|
uv_fs_mkdir(uv_default_loop(), DIRECTORY_PATH, 0755, function($result) {
|
2012-07-04 02:40:06 +02:00
|
|
|
@rmdir(DIRECTORY_PATH);
|
|
|
|
});
|
|
|
|
|
|
|
|
uv_run();
|
|
|
|
*/
|
|
|
|
--EXPECT--
|