ParagonIE_Sodium_Core_Util::isMbStringOverride

Advertisement

Summery Summery

Returns whether or not mbstring.func_overload is in effect.

Syntax Syntax

ParagonIE_Sodium_Core_Util::isMbStringOverride()

Return Return

(bool)

Source Source

File: wp-includes/sodium_compat/src/Core/Util.php

    protected static function isMbStringOverride()
    {
        static $mbstring = null;

        if ($mbstring === null) {
            $mbstring = extension_loaded('mbstring')
                &&
            ((int) (ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING);
        }
        /** @var bool $mbstring */

        return $mbstring;
    }

Advertisement

Advertisement

Leave a Reply