1--TEST-- 2Transliterator::createFromRules (error) 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8 9$t = Transliterator::createFromRules("\x8Fss"); 10echo intl_get_error_message(),"\n"; 11 12$rules = <<<RULES 13\`\` } a > “; 14\`\` } a > b; 15RULES; 16 17$t = Transliterator::createFromRules($rules); 18echo intl_get_error_message(),"\n"; 19 20$rules = <<<RULES 21ffff 22RULES; 23 24$t = Transliterator::createFromRules($rules); 25echo intl_get_error_message(),"\n"; 26echo "Done.\n"; 27?> 28--EXPECTF-- 29Warning: Transliterator::createFromRules(): String conversion of rules to UTF-16 failed in %s on line %d 30String conversion of rules to UTF-16 failed: U_INVALID_CHAR_FOUND 31 32Warning: Transliterator::createFromRules(): transliterator_create_from_rules: unable to create ICU transliterator from rules (parse error after "{'``'}a > “;", before or at "{'``'}a > b;") in %s on line %d 33transliterator_create_from_rules: unable to create ICU transliterator from rules (parse error after "{'``'}a > “;", before or at "{'``'}a > b;"): U_RULE_MASK_ERROR 34 35Warning: Transliterator::createFromRules(): transliterator_create_from_rules: unable to create ICU transliterator from rules (parse error at offset 0, before or at "ffff") in %s on line %d 36transliterator_create_from_rules: unable to create ICU transliterator from rules (parse error at offset 0, before or at "ffff"): U_MISSING_OPERATOR 37Done. 38