1--TEST-- 2IntlTimeZone::getCanonicalID(): second argument 3--EXTENSIONS-- 4intl 5--SKIPIF-- 6<?php if (version_compare(INTL_ICU_VERSION, '53.1') < 0) die('skip for ICU >= 53.1'); ?> 7--FILE-- 8<?php 9ini_set("intl.error_level", E_WARNING); 10 11var_dump(IntlTimeZone::getCanonicalID('Portugal', $isSystemId)); 12var_dump($isSystemId); 13 14/* A valid custom time zone ID has the following syntax: GMT[+|-]hh[[:]mm] */ 15var_dump(IntlTimeZone::getCanonicalID('GMT +01:25', $isSystemId)); 16var_dump($isSystemId); 17 18?> 19--EXPECTF-- 20string(13) "Europe/Lisbon" 21bool(true) 22 23Warning: IntlTimeZone::getCanonicalID(): error obtaining canonical ID in %stimezone_getCanonicalID_variant1_2.php on line %d 24bool(false) 25bool(true) 26