php-src/ext/intl/tests/timezone_getRegion_error.phpt
David CARLIER 9a3a4b5ba2
ext/intl: IntlDateFormatter class removing redundant error message info. (#13465)
Also correcting new IntlChar class constants typos.
2024-02-21 23:23:09 +00:00

17 lines
417 B
PHP

--TEST--
IntlTimeZone::getRegion(): errors
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
var_dump(IntlTimeZone::getRegion("foo\x81"));
var_dump(IntlTimeZone::getRegion("foo"));
?>
--EXPECTF--
Warning: IntlTimeZone::getRegion(): could not convert time zone id to UTF-16 in %s on line %d
bool(false)
Warning: IntlTimeZone::getRegion(): error obtaining region in %s on line %d
bool(false)