1--TEST--
2Transliterator::getErrorCode (basic)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8$t = Transliterator::create("[\p{Bidi_Mirrored}] Hex");
9var_dump($t->transliterate("\x8F"));
10echo transliterator_get_error_code($t), "\n";
11
12echo $t->getErrorCode(), "\n";
13
14var_dump($t->transliterate(""));
15echo $t->getErrorCode(), "\n";
16
17echo "Done.\n";
18?>
19--EXPECTF--
20Warning: Transliterator::transliterate(): String conversion of string to UTF-16 failed in %s on line %d
21bool(false)
2210
2310
24string(0) ""
250
26Done.
27