|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-05-22 21:48 UTC] aharvey@php.net
-Status: Open
+Status: Wont fix
-Package: *General Issues
+Package: Date/time related
[2014-05-22 21:48 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ DateTime::createFromFormat not checking properly provided format (day [01-31] and month [01-12] limitations) and only checking number of digits. Test script: --------------- <?php var_dump(DateTime::createFromFormat('Y-m-d', '9999-99-99')); Expected result: ---------------- bool(false) Actual result: -------------- object(DateTime)#9 (3) { ["date"]=> string(20) "10007-06-07 13:28:21" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Berlin" }