From 3c6b3b7ffd256df19c39b0f4aa0bb28badd08aaa Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Fri, 9 Jun 2017 18:35:18 -0400 Subject: [PATCH] Regression, breaks PHP < 5.5. --- src/Core/Util.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/Util.php b/src/Core/Util.php index cb3e2716..1cb56125 100644 --- a/src/Core/Util.php +++ b/src/Core/Util.php @@ -167,8 +167,7 @@ public static function hashEquals($left, $right) $d |= self::chrToInt($left[$i]) ^ self::chrToInt($right[$i]); } - /* branch-free variant of === 0 */ - if (-(1 & (($d - 1) >> 8))) { + if ($d !== 0) { return false; } return $left === $right;