Is there a PHP extension (stability is irrelevant) that allows for direct epoll, kqueue, /dev/poll polling functions without going through libevent or libev extensions?
You don't specify what architectures should be supported by the extension. But if Linux-only is an option you can use inotify, which:
php-inotifytools is a another possible extension.
Here is an extensive, self-contained article showing how inotify works and how to use the C API.
Additionally, judging by by the conclusion of Robert Love's article: Intro to inotify, inotify has a very good performance:
inotify is a simple yet powerful file change notification system with an intuitive user interface, excellent performance, support for many different events and numerous features. inotify is currently in use in various projects, including Beagle, an advanced desktop indexing system, and Gamin, a FAM replacement.
Robert Love is a well respected Linux kernel hacker, and author of the reference book Linux Kernel Development (which I happen to own).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With