|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-09 14:57 UTC] requinix@php.net
-Assigned To:
+Assigned To: derick
[2017-07-09 14:57 UTC] requinix@php.net
[2017-07-09 15:01 UTC] derick@php.net
[2017-07-09 15:04 UTC] nikic@php.net
[2017-07-09 15:14 UTC] marcospassos dot com at gmail dot com
[2017-07-09 15:30 UTC] requinix@php.net
[2017-07-09 15:49 UTC] marcospassos dot com at gmail dot com
[2017-07-09 16:00 UTC] requinix@php.net
[2017-07-10 09:56 UTC] derick@php.net
[2017-08-17 09:05 UTC] derick@php.net
-Status: Assigned
+Status: Closed
[2017-08-17 09:05 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 07:00:01 2025 UTC |
Description: ------------ Modifying the microsecond part of a DateTime leads to wrong behavior in comparison operators. Test script: --------------- $expected = new DateTimeImmutable('2015-08-31 01:02:04.456790'); $date = (new DateTimeImmutable('2015-08-31 01:02:03.456789'))->modify('+1000001 microseconds'); // Expected false, but it's actually true assertFalse($expected > $date || $expected < $date); Expected result: ---------------- True Actual result: -------------- False