Skip to content

Commit

Permalink
ini_get('mbstring.func_overload'): Avoid deprecation notices.
Browse files Browse the repository at this point in the history
Signed-off-by:Ivan Tcholakov <ivantcholakov@gmail.com>
  • Loading branch information
ivantcholakov committed Feb 26, 2021
1 parent 55c24a0 commit 6af220d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GibberishAES.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected static function is_windows() {
protected static function mbstring_func_overload() {

if (!isset(self::$mbstring_func_overload)) {
self::$mbstring_func_overload = extension_loaded('mbstring') && ini_get('mbstring.func_overload');
self::$mbstring_func_overload = (defined('MB_OVERLOAD_STRING') && ((int) @ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING));
}

return self::$mbstring_func_overload;
Expand Down

0 comments on commit 6af220d

Please sign in to comment.