|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-06-04 22:53 UTC] kylekatarnls at gmail dot com
[2021-06-09 18:35 UTC] patrickallaert@php.net
-Assigned To:
+Assigned To: derick
[2022-05-13 15:48 UTC] derick@php.net
-Status: Assigned
+Status: Wont fix
[2022-05-13 15:48 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ Previously (PHP 7.4 and 8.0) when a date with year = PHP_INT_MAX were > to a date with any lower year, it was convenient to represent an absolute maximum. And it was rather expected. Now in 8.1 (latest on GitHub Actions), it became lower. Test script: --------------- var_dump( (new DateTimeImmutable('2000-12-31 23:59:59.999999'))->setDate(PHP_INT_MAX, 12, 31) > new DateTimeImmutable('2019-01-26 10:30:12.000000') ); Expected result: ---------------- true Actual result: -------------- false