--- a/wp/wp-includes/sodium_compat/src/Core/Util.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/sodium_compat/src/Core/Util.php Tue Sep 27 16:37:53 2022 +0200
@@ -287,7 +287,7 @@
}
/**
- * Catch hash_update() failures and throw instead of silently proceding
+ * Catch hash_update() failures and throw instead of silently proceeding
*
* @param HashContext|resource &$hs
* @param string $data
@@ -458,7 +458,7 @@
}
/** @var array<int, int> $unpacked */
$unpacked = unpack('V', $string);
- return (int) ($unpacked[1] & 0xffffffff);
+ return (int) $unpacked[1];
}
/**
@@ -586,6 +586,7 @@
$a <<= 1;
$b >>= 1;
}
+ $c = (int) @($c & -1);
/**
* If $b was negative, we then apply the same value to $c here.
@@ -612,7 +613,11 @@
{
$high = 0;
/** @var int $low */
- $low = $num & 0xffffffff;
+ if (PHP_INT_SIZE === 4) {
+ $low = (int) $num;
+ } else {
+ $low = $num & 0xffffffff;
+ }
if ((+(abs($num))) >= 1) {
if ($num > 0) {
@@ -929,6 +934,10 @@
static $mbstring = null;
if ($mbstring === null) {
+ if (!defined('MB_OVERLOAD_STRING')) {
+ $mbstring = false;
+ return $mbstring;
+ }
$mbstring = extension_loaded('mbstring')
&& defined('MB_OVERLOAD_STRING')
&&