You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@CharlotteDunois Thanks for spotting and reporting, this is interesting!
On 32 bit systems this means that the maximum time interval is ~25 days (2^31 milliseconds). On 64 bit systems this is ~300 million years (2^63 milliseconds), so this is unlikely to be an issue for most common use cases.
Is this something anybody would want to file as a PR with a simple test case?
ExtUvLoop allows timers with an time or interval value that cause the internal conversion to cause an integer overflow to
0
.event-loop/src/ExtUvLoop.php
Lines 128 to 133 in a0ecac9
Using
\PHP_INT_MAX
silently causes an integer overflow to0
, 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.
The text was updated successfully, but these errors were encountered: