Make WordPress Core


Ignore:
Timestamp:
09/27/2020 05:15:03 AM (4 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Backport a commit from sodium_compat trunk to fix a PHP 8 error.

This addresses an "Undefined constant MB_OVERLOAD_STRING" fatal error in the ParagonIE_Sodium_Core_Util::isMbStringOverride() method.

In PHP 8, the MB_OVERLOAD_STRING constant has been removed, along with the mbstring function overloading feature.

Fixes #51399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core/Util.php

    r46586 r49057  
    912912        if ($mbstring === null) {
    913913            $mbstring = extension_loaded('mbstring')
     914                && defined('MB_OVERLOAD_STRING')
    914915                &&
    915916            ((int) (ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING);
Note: See TracChangeset for help on using the changeset viewer.