1--TEST-- 2IntlTimeZone::createTimeZoneIDEnumeration(): variant without offset 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8$enum = IntlTimeZone::createTimeZoneIDEnumeration( 9 IntlTimeZone::TYPE_ANY, 10 'PT'); 11$values = iterator_to_array($enum); 12var_dump(in_array('Europe/Lisbon', $values)); 13var_dump(in_array('Atlantic/Azores', $values)); 14 15$enum = IntlTimeZone::createTimeZoneIDEnumeration( 16 IntlTimeZone::TYPE_ANY, 17 'PT', 18 null); 19$values2 = iterator_to_array($enum); 20var_dump($values2 == $values); 21 22?> 23--EXPECT-- 24bool(true) 25bool(true) 26bool(true) 27