1--TEST--
2IntlDateFormatter::setTimeZone() bad args
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "pt_PT");
9ini_set("date.timezone", 'Atlantic/Azores');
10
11$df = new IntlDateFormatter(NULL, 0, 0);
12
13var_dump($df->setTimeZone(array()));
14var_dump($df->setTimeZone('non existing timezone'));
15
16?>
17--EXPECTF--
18Warning: Array to string conversion in %s on line %d
19
20Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'Array' in %s on line %d
21bool(false)
22
23Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'non existing timezone' in %s on line %d
24bool(false)
25