1--TEST-- 2IntlTimeZone::createTimeZone(): 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::createTimeZone()); 12var_dump(IntlTimeZone::createTimeZone(new stdClass)); 13var_dump(IntlTimeZone::createTimeZone("foo bar", 4)); 14var_dump(IntlTimeZone::createTimeZone("foo\x80")); 15 16--EXPECTF-- 17 18Warning: IntlTimeZone::createTimeZone() expects exactly 1 parameter, 0 given in %s on line %d 19 20Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d 21NULL 22 23Warning: IntlTimeZone::createTimeZone() expects parameter 1 to be string, object given in %s on line %d 24 25Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d 26NULL 27 28Warning: IntlTimeZone::createTimeZone() expects exactly 1 parameter, 2 given in %s on line %d 29 30Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d 31NULL 32 33Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: could not convert time zone id to UTF-16 in %s on line %d 34NULL 35