We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed4b051 + f1c4746 commit f0117e4Copy full SHA for f0117e4
src/Factory.php
@@ -7,12 +7,13 @@ class Factory
7
public static function create()
8
{
9
// @codeCoverageIgnoreStart
10
- if (function_exists('event_base_new')) {
11
- return new LibEventLoop();
12
- } elseif (class_exists('libev\EventLoop', false)) {
+ if (class_exists('libev\EventLoop', false)) {
13
return new LibEvLoop;
14
} elseif (class_exists('EventBase', false)) {
15
return new ExtEventLoop;
+ } elseif (function_exists('event_base_new') && PHP_VERSION_ID < 70000) {
+ // only use ext-libevent on PHP < 7 for now
16
+ return new LibEventLoop();
17
}
18
19
return new StreamSelectLoop();
0 commit comments