Bug #75642 [Ver]: Wrap around behaviour for microseconds is not working
| From: | derick@php.net | Date: | Thu, 11 Oct 2018 15:59:48 +0000 |
| Subject: | Bug #75642 [Ver]: Wrap around behaviour for microseconds is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217522@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75642&edit=1
ID: 75642
Updated by: derick@php.net
Reported by: marcospassos dot com at gmail dot com
Summary: Wrap around behaviour for microseconds is not
working
Status: Verified
Type: Bug
Package: Date/time related
Operating System: OSX
PHP Version: 7.2.0
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
This is fixed for PHP 7.3.0RC4, by upgrading timelib (See: #75577)
Previous Comments:
------------------------------------------------------------------------
[2018-10-11 14:18:44] cmb@php.net
Related To: Bug #77001
------------------------------------------------------------------------
[2018-06-06 14:08:53] german dot drulyk at gmail dot com
Confirmed reproduce-able on:
Windows 7 x64
PHP x64 7.1.16 and 7.2.4
------------------------------------------------------------------------
[2018-04-23 14:21:32] cmb@php.net
I've filed a respective ticket upstream[1]:
<https://github.com/derickr/timelib/issues/35>.
------------------------------------------------------------------------
[2018-04-23 09:16:32] requinix@php.net
Related To: Bug #76252
------------------------------------------------------------------------
[2018-03-09 15:06:04] requinix@php.net
Microseconds are actually their own distinct integer.
Off by one error.
https://github.com/php/php-src/blob/PHP-7.2.0/ext/date/lib/tm2unixtime.c#L42
Additionally it's only able to over-/underflow the seconds by a change of 2.
https://3v4l.org/4Ra66
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75642
--
Edit this bug report at https://bugs.php.net/bug.php?id=75642&edit=1