-
Notifications
You must be signed in to change notification settings - Fork 3.6k
transliterator_transliterate "unable to open ICU transliterator" #520
Comments
Hi, if (function_exists('transliterator_transliterate') && $transliterator = Transliterator::create("Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC; Lower();") !== null) {
$transString = $transliterator->transliterate($string)
} else {
$transString = static::toAscii($string);
}... |
fixed for me :) |
@fzaninotto what do you think? |
@fonsecas72 unfortunately your fix doesn't seem to work for me :( I'm running php5.4 inside a docker container if that makes any difference? I have a feeling the webtatic.com el6 repos have a broken implementation of something somewhere!
|
Turns out the ICU and ext-intl where seriously out of date in the el6 repos. I installed ICU and pecl intl from source and it's now fixed :) |
That doesn't silence the warning, does it? |
I don't think so, but @yoghi can you help with the answer to that? |
@adamlc which linux distro have you used? |
@yoghi I'm sorry, I think you misunderstood the question. |
@yoghi I'm using CentOS 6 and the php 5.4 repos from webtatic.com |
it happens to me as well, very annoying |
Can you post an update which silences the warning? |
@fzaninotto this should avoid the php warning #541 |
Avoids php warning "Could not create transliterator" - fixes #520
In the library was used if (function_exists('transliterator_transliterate')) but isn't a garantee that all ICU transliterator necessary was installed
The text was updated successfully, but these errors were encountered: