1--TEST--
2Transliterator::create (error)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8ini_set("intl.error_level", E_WARNING);
9Transliterator::create("inexistent id");
10echo intl_get_error_message(), "\n";
11Transliterator::create("bad UTF-8 \x8F");
12echo intl_get_error_message(), "\n";
13
14echo "Done.\n";
15?>
16--EXPECTF--
17Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
18transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
19
20Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
21String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
22Done.
23