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
@Prasanth 예, 조금 더 자세히 들어가면 (http://docs.hhvm.com/manual/en/function.inotify-init.php) "HHVM에서 지원되지 않음"이라는 큰 경고 메시지가 나타납니다. . 그것은 그 질문의 구멍 목적입니다. – marcio