Bug #70838 [Csd]: DateTimeZone::listIdentifiers() ignores parameter $country
Edit report at https://bugs.php.net/bug.php?id=70838&edit=1
ID: 70838
Updated by: derick@php.net
Reported by: serhiy dot shkolyarenko at gmail dot com
Summary: DateTimeZone::listIdentifiers() ignores parameter
$country
Status: Closed
Type: Bug
Package: Date/time related
Operating System: any
PHP Version: 5.6.15
-Assigned To:
+Assigned To: derick
Block user comment: N
Private report: N
New Comment:
If you have a suggestion on how to make this clearer in the docs, feel free to mention it! Or,
perhaps we should raise a warning if you specify two args and not use "PER_COUNTRY"?
Previous Comments:
------------------------------------------------------------------------
[2015-11-03 09:32:43] serhiy dot shkolyarenko at gmail dot com
Closed, NOT A BUG
DateTimeZone::PER_COUNTRY should be used
------------------------------------------------------------------------
[2015-11-02 16:30:35] serhiy dot shkolyarenko at gmail dot com
Description:
------------
DateTimeZone::listIdentifiers() ignores second parameter.
Attached script shows cities for the whole Europe, but not for Ukraine only.
Checked for PHP versions 5.6.11 and 7.0.0-RC6.
Test script:
---------------
var_dump(DateTimeZone::listIdentifiers(DateTimeZone::EUROPE, 'UA'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70838&edit=1
Thread (4 messages)