xoops_elFinder.class.php - Use of mbstring.internal_encoding is deprecated
gigamaster opened this issue · 2 comments
gigamaster commented
xelfinder/class/xoops_elFinder.class.php
So far, I have tried this :
// !Fix PHP7 Deprecated ini_set(): Use of mbstring.internal_encoding is deprecated
// if (strtoupper(_CHARSET) !== 'UTF-8') {
// ini_set('mbstring.internal_encoding', 'UTF-8');
// }
// !Fix Error mbstring.internal_encoding in PHP >= 5.6
// if mb functions are available, set internal encoding to UTF8
if (is_callable('mb_internal_encoding')) {
mb_internal_encoding("UTF-8");
if (ini_get("mbstring.internal_encoding")) {
ini_set("mbstring.internal_encoding", 'UTF-8');
if (version_compare('5.6.0', PHP_VERSION, '<')) {
if (ini_get("mbstring.internal_encoding")) {
ini_set("mbstring.internal_encoding", 'UTF-8');
}
}
}
}
gigamaster commented
mbstring.internal_encoding = deprecated
but
mb_internal_encoding() = not deprecated
Ref.
https://www.php.net/manual/en/mbstring.configuration.php
https://www.php.net/.../en/function.mb-internal-encoding.php
nao-pon commented
@gigamaster Thank you for your advice. I will fix this.