1--TEST--
2intl.use_exceptions INI setting
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7ini_set("intl.use_exceptions", true);
8$t = transliterator_create('any-hex');
9try {
10    var_dump($t->transliterate('a', 3));
11} catch (IntlException $intlE) {
12    var_dump($intlE->getMessage());
13}
14ini_set("intl.use_exceptions", false);
15ini_set("intl.error_level", E_NOTICE);
16var_dump($t->transliterate('a', 3));
17?>
18--EXPECTF--
19string(130) "transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 1)"
20
21Notice: Transliterator::transliterate(): transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 1) in %s on line %d
22bool(false)
23