diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 12:57:33 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 12:57:33 +0100 |
commit | 318c485b7b83356543c9aa7ab65464893d7eb8fe (patch) | |
tree | 4ac393b148f4b16dfae707aaf1e344ad00fb182a /system/libraries/Encryption.php | |
parent | 9c5227c56f9c29729659951b2ac3df9e8a87d5b5 (diff) |
Close #6021: Suppress possible E_DEPRECATION notices about mbstring.func_overload
Diffstat (limited to 'system/libraries/Encryption.php')
-rw-r--r-- | system/libraries/Encryption.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index cb8ad9de9..db6b30d46 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -161,7 +161,7 @@ class CI_Encryption { show_error('Encryption: Unable to find an available encryption driver.'); } - 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')); $this->initialize($params); if ( ! isset($this->_key) && self::strlen($key = config_item('encryption_key')) > 0) |