-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
Description
ExtUvLoop allows timers with an time or interval value that cause the internal conversion to cause an integer overflow to 0.
Lines 128 to 133 in a0ecac9
| \uv_timer_start( | |
| $event, | |
| (int) ($interval * 1000) + 1, | |
| 0, | |
| $callback | |
| ); |
Using \PHP_INT_MAX silently causes an integer overflow to 0, and results in an intermediate firing of the timer callback.
The loop implementation should instead throw an exception if the conversion could cause an integer overflow.