1--TEST--
2IntlTimeZone::getEquivalentID(): errors
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11var_dump(IntlTimeZone::getEquivalentID('foo'));
12var_dump(IntlTimeZone::getEquivalentID('foo', 'bar'));
13var_dump(IntlTimeZone::getEquivalentID('Europe/Lisbon', 0, 1));
14var_dump(IntlTimeZone::getEquivalentID("foo\x80", 0));
15
16--EXPECTF--
17
18Warning: IntlTimeZone::getEquivalentID() expects exactly 2 parameters, 1 given in %s on line %d
19
20Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d
21bool(false)
22
23Warning: IntlTimeZone::getEquivalentID() expects parameter 2 to be integer, string given in %s on line %d
24
25Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d
26bool(false)
27
28Warning: IntlTimeZone::getEquivalentID() expects exactly 2 parameters, 3 given in %s on line %d
29
30Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d
31bool(false)
32
33Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: could not convert time zone id to UTF-16 in %s on line %d
34bool(false)
35