ausi / slug-generator

Slug Generator Library for PHP, based on Unicode’s CLDR data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: unable to open ICU transliterator with id "Latin-Upper"

bytehead opened this issue · comments

Steps to reproduce:

$ php -a
Interactive shell

php > Transliterator::create('Not-Exsits');
PHP Warning:  Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "Not-Exsits" in php shell code on line 1
PHP Stack trace:
PHP   1. {main}() php shell code:0
PHP   2. Transliterator::create() php shell code:1

Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "Not-Exsits" in php shell code on line 1

Call Stack:
    1.5453     388280   1. {main}() php shell code:0
    1.5456     388280   2. Transliterator::create() php shell code:PHP:

PHP:
PHP 7.2.12 (cli) (built: Nov 9 2018 11:03:05) ( NTS )

intl:

version: 1.1.0
ICU version: 62.1
ICU Data version: 62.1
ICU TZData version: 2018e
ICU Unicode version: 11.0

Should be fixed in the master branch.

Thank you!

Tested master branch, fix works perfectly.