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