Skip to content

Commit 5ddfc7b

Browse files
committed
ExtEventLoop make FEATURE_FDS enabled by default
1 parent e295575 commit 5ddfc7b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/ExtEventLoop.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ final class ExtEventLoop implements LoopInterface
3838

3939
public function __construct(EventBaseConfig $config = null)
4040
{
41+
if ($config === null) {
42+
$config = new EventBaseConfig();
43+
$config->requireFeatures(EventBaseConfig::FEATURE_FDS);
44+
}
45+
4146
$this->eventBase = new EventBase($config);
4247
$this->futureTickQueue = new FutureTickQueue();
4348
$this->timerEvents = new SplObjectStorage();

tests/ExtEventLoopTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ public function createLoop($readStreamCompatible = false)
1616
$this->markTestSkipped('ext-event tests skipped because ext-event is not installed.');
1717
}
1818

19-
$cfg = null;
20-
if ($readStreamCompatible) {
21-
$cfg = new \EventConfig();
22-
$cfg->requireFeatures(\EventConfig::FEATURE_FDS);
23-
}
24-
25-
return new ExtEventLoop($cfg);
19+
return new ExtEventLoop();
2620
}
2721

2822
public function createStream()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy