1--TEST--
2Transliterator::create (error)
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
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--EXPECTF--
16Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
17transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
18
19Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
20String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
21Done.
22