1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Simplify version detection

This commit is contained in:
Daniil Gentili 2019-06-08 13:56:57 +02:00
parent 84d1d4a14a
commit b58ef264c8

View File

@ -50,7 +50,7 @@ class NativeDriver extends Driver
{
$this->timerQueue = new Internal\TimerQueue;
$this->signalHandling = \extension_loaded("pcntl");
$this->manualSignalHandling = !(\PHP_MAJOR_VERSION >= 7 && \PHP_MINOR_VERSION >= 1);
$this->manualSignalHandling = PHP_VERSION_ID < 70100;
$this->nowOffset = getCurrentTime();
$this->now = \random_int(0, $this->nowOffset);
$this->nowOffset -= $this->now;