summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-05 12:57:33 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-05 12:57:33 +0100
commit318c485b7b83356543c9aa7ab65464893d7eb8fe (patch)
tree4ac393b148f4b16dfae707aaf1e344ad00fb182a /system/libraries/Email.php
parent9c5227c56f9c29729659951b2ac3df9e8a87d5b5 (diff)
Close #6021: Suppress possible E_DEPRECATION notices about mbstring.func_overload
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index dcc4ca0d3..6c453da3f 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -397,7 +397,7 @@ class CI_Email {
$this->initialize($config);
$this->_safe_mode = ( ! is_php('5.4') && ini_get('safe_mode'));
- isset(self::$func_overload) OR self::$func_overload = (extension_loaded('mbstring') && ini_get('mbstring.func_overload'));
+ isset(self::$func_overload) OR self::$func_overload = ( ! is_php('8.0') && extension_loaded('mbstring') && @ini_get('mbstring.func_overload'));
log_message('info', 'Email Class Initialized');
}