diff --git a/README.md b/README.md index 029042e0..9fe50686 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ single [`run()`](#run) call that is controlled by the user. * [Install](#install) * [Tests](#tests) * [License](#license) +* [Known issues](#known-issues) * [More](#more) ## Quickstart example @@ -704,6 +705,10 @@ $ php vendor/bin/phpunit MIT, see [LICENSE file](LICENSE). +## Known Issues +* _*pecl-event*_ on Windows is not capable of accepting arbitrary file descriptor types (`EventConfig::FEATURE_FDS`). + Instead if an user requires this feature, _*libuv*_ should be used. [Related issue](https://github.com/reactphp/event-loop/issues/189) + ## More * See our [Stream component](https://github.com/reactphp/stream) for more diff --git a/src/ExtEventLoop.php b/src/ExtEventLoop.php index fd403d4a..5296f0e5 100644 --- a/src/ExtEventLoop.php +++ b/src/ExtEventLoop.php @@ -44,7 +44,10 @@ public function __construct() } $config = new EventBaseConfig(); - $config->requireFeatures(EventBaseConfig::FEATURE_FDS); + // Skip `EventBaseConfig::FEATURE_FDS` due an issue https://github.com/reactphp/event-loop/issues/189 + if ('WIN' !== strtoupper(substr(PHP_OS, 0, 3))) { + $config->requireFeatures(EventBaseConfig::FEATURE_FDS); + } $this->eventBase = new EventBase($config); $this->futureTickQueue = new FutureTickQueue();