1--TEST--
2IntlTimeZone::getDisplayName(): locale parameter
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+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12ini_set("error_reporting", -1);
13ini_set("display_errors", 1);
14
15$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
16
17ini_set('intl.default_locale', 'en_US');
18var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG));
19var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, NULL));
20var_dump($lsb->getDisplayName(false, IntlTimeZone::DISPLAY_LONG, 'pt_PT'));
21
22?>
23==DONE==
24--EXPECT--
25string(30) "Western European Standard Time"
26string(30) "Western European Standard Time"
27string(32) "Hora Padrão da Europa Ocidental"
28==DONE==
29