|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-04-07 09:22 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2021-04-07 09:22 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Regular expression year4 conflicts with gnunocolon, and pointeddate2 with both timelong12 and timelong24. Test script: --------------- <?php echo date("Y-m-d H:i:s", strtotime("2460")) . "\n"; // year4 was used echo date("Y-m-d H:i:s", strtotime("2011")) . "\n"; // gnunocolon was used echo date("Y-m-d H:i:s", strtotime("20.02.99")) . "\n"; // pointeddate2 was used echo date("Y-m-d H:i:s", strtotime("20.02.11")) . "\n"; // timelong24 was used Expected result: ---------------- Used single regular expression independently on date/time range Actual result: -------------- 2460-02-25 15:17:46 2011-02-25 20:11:00 1999-02-20 00:00:00 2011-02-25 20:02:11