From: Tyler Romeo Date: Tue, 29 Jul 2014 15:55:34 +0000 (-0400) Subject: Added explicit type-cast to hash_pbkdf2 X-Git-Tag: 1.31.0-rc.0~14686^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=97762eec53bd47d88695678d26e02c2677f53b25;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 {