1--TEST-- 2IntlTimeZone::getID(): 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 11$tz = IntlTimeZone::createTimeZone('Europe/Lisbon'); 12var_dump($tz->getID('foo')); 13intltz_get_id(null); 14--EXPECTF-- 15Warning: IntlTimeZone::getID() expects exactly 0 parameters, 1 given in %s on line %d 16 17Warning: IntlTimeZone::getID(): intltz_get_id: bad arguments in %s on line %d 18bool(false) 19 20Fatal error: Uncaught TypeError: Argument 1 passed to intltz_get_id() must be an instance of IntlTimeZone, null given in %s:%d 21Stack trace: 22#0 %s(%d): intltz_get_id(NULL) 23#1 {main} 24 thrown in %s on line %d 25