|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-19 17:35 UTC] aharvey@php.net
-Package: Date/time related
+Package: intl
[2013-12-19 21:22 UTC] mj@php.net
-Status: Open
+Status: Not a bug
[2013-12-19 21:22 UTC] mj@php.net
[2014-07-31 11:53 UTC] fpruis at e-sites dot nl
[2016-05-04 10:52 UTC] heah at heahprod dot com
[2017-05-31 15:44 UTC] imprec at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 19:00:02 2025 UTC |
Description: ------------ When creating instance of IntlDateFormatter and DateTimeZone value is provided, object is not created and null value is returned instead. If 4th parameter (\DateTimeZone::UTC) is not provided, IntlDateFormatter object is created. Test script: --------------- <?php $f1 = new \IntlDateFormatter(\Locale::getDefault(), 1, \IntlDateFormatter::NONE); var_dump($f1); $f2 = new \IntlDateFormatter(\Locale::getDefault(), 1, \IntlDateFormatter::NONE, \DateTimeZone::UTC); var_dump($f2); $f3 = new \IntlDateFormatter(\Locale::getDefault(), 1, \IntlDateFormatter::NONE, \DateTimeZone::EUROPE); var_dump($f3); Expected result: ---------------- class IntlDateFormatter#1 (0) { } class IntlDateFormatter#2 (0) { } class IntlDateFormatter#3 (0) { } Actual result: -------------- class IntlDateFormatter#1 (0) { } NULL NULL