|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-20 15:06 UTC] php-bugs at allenjb dot me dot uk
[2017-04-20 16:24 UTC] spam at bugyik dot cz
[2017-04-21 11:38 UTC] heiglandreas@php.net
-Status: Open
+Status: Not a bug
[2017-04-21 11:38 UTC] heiglandreas@php.net
[2017-04-21 11:58 UTC] spam at bugyik dot cz
[2017-04-24 11:52 UTC] heiglandreas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 08:00:02 2025 UTC |
Description: ------------ I'm missing validation of date-time in DateTime::createFromFormat. The example below tells more. Test script: --------------- <?php var_dump(\DateTime::createFromFormat(\DateTime::RFC3339, '2017-99-99T08:51:13-03:00')); Expected result: ---------------- some exception expected (like from new DateTime('bad-time')) Actual result: -------------- object(DateTime)#1 (3) { ["date"]=> string(26) "2025-06-07 08:51:13.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "-03:00" }