1--TEST--
2IntlTimeZone::createTimeZoneIDEnumeration(): variant without offset
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '4.8') < 0)
8	die('skip for ICU 4.8+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12$enum = IntlTimeZone::createTimeZoneIDEnumeration(
13	IntlTimeZone::TYPE_ANY,
14	'PT');
15$values = iterator_to_array($enum);
16var_dump(in_array('Europe/Lisbon', $values));
17var_dump(in_array('Atlantic/Azores', $values));
18
19$enum = IntlTimeZone::createTimeZoneIDEnumeration(
20	IntlTimeZone::TYPE_ANY,
21	'PT',
22	null);
23$values2 = iterator_to_array($enum);
24var_dump($values2 == $values);
25
26?>
27==DONE==
28--EXPECT--
29bool(true)
30bool(true)
31bool(true)
32==DONE==
32