From 97762eec53bd47d88695678d26e02c2677f53b25 Mon Sep 17 00:00:00 2001 From: Tyler Romeo Date: Tue, 29 Jul 2014 11:55:34 -0400 Subject: [PATCH] Added explicit type-cast to hash_pbkdf2 It seems HHVM does not like the use of dynamic typing in hash_pbkdf2() (also it's kind of not the best idea in general), so added explicit (int) casting to parameters. Follows-up: I0a9c972931a0eff0cfb2619cef3ddffd03710285 Change-Id: I8adae3cc2cdf8029be59e2d62a3ab0fbfb73b7aa --- includes/password/Pbkdf2Password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/password/Pbkdf2Password.php b/includes/password/Pbkdf2Password.php index 417753f656..080e3b0ddb 100644 --- a/includes/password/Pbkdf2Password.php +++ b/includes/password/Pbkdf2Password.php @@ -51,8 +51,8 @@ class Pbkdf2Password extends ParameterizedPassword { $this->params['algo'], $password, base64_decode( $this->args[0] ), - $this->params['rounds'], - $this->params['length'], + (int)$this->params['rounds'], + (int)$this->params['length'], true ); } else { -- 2.20.1