|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-05-15 14:56 UTC] andrew dot nester dot dev at gmail dot com
[2017-05-16 08:14 UTC] shubinmi at gmail dot com
-Status: Open
+Status: Closed
[2017-05-16 08:14 UTC] shubinmi at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
Description: ------------ IntlDateFormatter::parse has incorrect behavior for mounth. I waiting for error when month is more then 12, but now it returns date of next year. Test script: --------------- $formatter = new \IntlDateFormatter('en_US', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE,'UTC', null, 'Y-m-d'); $formatter->setLenient(false); $parsedDate = $formatter->parse('1981-15-21'); if ($parsedDate === false) { echo 'success'; } else { echo 'fail'; } // return "fail" Expected result: ---------------- false Actual result: -------------- int