@@ -182,13 +182,14 @@ It is commonly installed as part of many PHP distributions.
182
182
If this extension is missing (or you're running on Windows), signal handling is
183
183
not supported and throws a ` BadMethodCallException ` instead.
184
184
185
- This event loop is known to rely on wall-clock time to schedule future
186
- timers, because a monotonic time source is not available in PHP by default.
185
+ This event loop is known to rely on wall-clock time to schedule future timers
186
+ when using any version before PHP 7.3, because a monotonic time source is
187
+ only available as of PHP 7.3 (` hrtime() ` ).
187
188
While this does not affect many common use cases, this is an important
188
189
distinction for programs that rely on a high time precision or on systems
189
190
that are subject to discontinuous time adjustments (time jumps).
190
- This means that if you schedule a timer to trigger in 30s and then adjust
191
- your system time forward by 20s, the timer may trigger in 10s.
191
+ This means that if you schedule a timer to trigger in 30s on PHP < 7.3 and
192
+ then adjust your system time forward by 20s, the timer may trigger in 10s.
192
193
See also [ ` addTimer() ` ] ( #addtimer ) for more details.
193
194
194
195
#### ExtEventLoop
@@ -360,8 +361,8 @@ same time (within its possible accuracy) is not guaranteed.
360
361
361
362
This interface suggests that event loop implementations SHOULD use a
362
363
monotonic time source if available. Given that a monotonic time source is
363
- not available on PHP by default, event loop implementations MAY fall back
364
- to using wall-clock time.
364
+ only available as of PHP 7.3 by default, event loop implementations MAY
365
+ fall back to using wall-clock time.
365
366
While this does not affect many common use cases, this is an important
366
367
distinction for programs that rely on a high time precision or on systems
367
368
that are subject to discontinuous time adjustments (time jumps).
@@ -433,8 +434,8 @@ same time (within its possible accuracy) is not guaranteed.
433
434
434
435
This interface suggests that event loop implementations SHOULD use a
435
436
monotonic time source if available. Given that a monotonic time source is
436
- not available on PHP by default, event loop implementations MAY fall back
437
- to using wall-clock time.
437
+ only available as of PHP 7.3 by default, event loop implementations MAY
438
+ fall back to using wall-clock time.
438
439
While this does not affect many common use cases, this is an important
439
440
distinction for programs that rely on a high time precision or on systems
440
441
that are subject to discontinuous time adjustments (time jumps).
0 commit comments