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--EXPECTF-- 16Warning: IntlTimeZone::getEquivalentID() expects exactly 2 parameters, 1 given in %s on line %d 17 18Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d 19bool(false) 20 21Warning: IntlTimeZone::getEquivalentID() expects parameter 2 to be integer, string given in %s on line %d 22 23Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d 24bool(false) 25 26Warning: IntlTimeZone::getEquivalentID() expects exactly 2 parameters, 3 given in %s on line %d 27 28Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: bad arguments in %s on line %d 29bool(false) 30 31Warning: IntlTimeZone::getEquivalentID(): intltz_get_equivalent_id: could not convert time zone id to UTF-16 in %s on line %d 32bool(false) 33