1--TEST--
2IntlTimeZone::getDisplayName(): type parameter (ICU < 49)
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '49') >= 0)
8	die('skip for ICU < 49');
9if (version_compare(INTL_ICU_VERSION, '4.8') < 0)
10	die('skip for ICU 4.8+');
11--FILE--
12<?php
13ini_set("intl.error_level", E_WARNING);
14ini_set("error_reporting", -1);
15ini_set("display_errors", 1);
16
17$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
18
19ini_set('intl.default_locale', 'en_US');
20var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT));
21var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG));
22var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT_GENERIC));
23var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG_GENERIC));
24var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT_GMT));
25var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG_GMT));
26var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED));
27var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_GENERIC_LOCATION));
28
29?>
30==DONE==
31--EXPECT--
32string(3) "WET"
33string(21) "Western European Time"
34string(22) "Portugal Time (Lisbon)"
35string(22) "Portugal Time (Lisbon)"
36string(5) "+0000"
37string(3) "GMT"
38string(3) "GMT"
39string(22) "Portugal Time (Lisbon)"
40==DONE==
40