Remove outdated checks for old PHP versions

This commit is contained in:
Kijin Sung 2016-03-22 11:34:36 +09:00
parent 1bf110439a
commit a0d9e1c6ad
3 changed files with 7 additions and 21 deletions

View file

@ -79,11 +79,11 @@ class Password
public static function getSupportedAlgorithms()
{
$retval = array();
if (version_compare(PHP_VERSION, '5.3.7', '>=') && defined('\CRYPT_BLOWFISH'))
if (defined('\CRYPT_BLOWFISH'))
{
$retval['bcrypt'] = 'bcrypt';
}
if (function_exists('hash_hmac') && in_array('sha512', hash_algos()))
if (in_array('sha512', hash_algos()))
{
$retval['pbkdf2'] = 'pbkdf2';
}