php-src/ext/intl/tests/timezone_createTimeZone_error.phpt
Gina Peter Banyard c42e6d62d8
ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

14 lines
290 B
PHP

--TEST--
IntlTimeZone::createTimeZone(): errors
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(IntlTimeZone::createTimeZone("foo\x80"));
echo intl_get_error_message(), PHP_EOL;
?>
--EXPECT--
NULL
IntlTimeZone::createTimeZone(): could not convert time zone id to UTF-16: U_INVALID_CHAR_FOUND