3
PHP有inotify
擴展名,但HHVM不支持它。如何使用HHVM監視文件更改?
如何監視至少在HHVM上的IN_CLOSE_WRITE
事件的文件?
<?php // sample inotify code for PHP
$fd = inotify_init();
$watch_descriptor = inotify_add_watch($fd, __FILE__, IN_ATTRIB);
touch(__FILE__); // generate an event
$events = inotify_read($fd);
var_dump($events);
您是否勾選了[this](http://docs.hhvm.com/manual/en/book.inotify.php)? – Prasanth 2014-09-27 18:28:48
@Prasanth是的,如果你[更深](http://docs.hhvm.com/manual/en/function.inotify-init.php),你會看到一個很大的警告說「不支持HHVM」 。這是問題的目的。 – marcio 2014-09-27 22:51:04