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
The totally wrong PHP 8.0 behavior has been fixed in the latest timelib version, so PHP 8.1 yields better results; I don't think this fix will be backported. The "slightly" wrong PHP 8.1 behavior is due to timelib_get_signed_nr() calling timelib_get_nr_ex() to get the actual number (without the sign), and that function calls strtoull(3) which saturates to the largest possible positive value. A possible fix would be to let strtoull(3) parse the sign as well.
Description
The following code:
Resulted in this output:
But I expected this output instead:
See https://3v4l.org/HdgS3.
PHP Version
PHP 7.4, 8.0, 8.1
Operating System
Linux, MacOS
The text was updated successfully, but these errors were encountered: