Make WordPress Core


Ignore:
Timestamp:
03/24/2022 03:18:31 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.17.1.

The latest version of sodium_compat includes further improvements for PHP 8.1 compatibility.

Release notes:
https://github.com/paragonie/sodium_compat/releases/tag/v1.17.1

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.17.0...v1.17.1

Follow-up to [49741], [51002], [51591].

Props jrf, paragoninitiativeenterprises.
Fixes #55453.

File:
1 edited

Legend:

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

    r51591 r52988  
    459459        /** @var array<int, int> $unpacked */
    460460        $unpacked = unpack('V', $string);
    461         return (int) ($unpacked[1] & 0xffffffff);
     461        return (int) $unpacked[1];
    462462    }
    463463
     
    614614        $high = 0;
    615615        /** @var int $low */
    616         $low = $num & 0xffffffff;
     616        if (PHP_INT_SIZE === 4) {
     617            $low = (int) $num;
     618        } else {
     619            $low = $num & 0xffffffff;
     620        }
    617621
    618622        if ((+(abs($num))) >= 1) {
Note: See TracChangeset for help on using the changeset viewer.