Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/4980' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Key/Derivation/Scrypt.php
Expand Up @@ -329,7 +329,7 @@ protected static function integerify($b)
*/
protected static function hex2bin($hex)
{
if (version_compare(PHP_VERSION, '5.4') >= 0) {
if (PHP_VERSION_ID >= 50400) {
return hex2bin($hex);
}
$len = strlen($hex);
Expand Down
2 changes: 1 addition & 1 deletion src/Password/Bcrypt.php
Expand Up @@ -83,7 +83,7 @@ public function create($password)
* Check for security flaw in the bcrypt implementation used by crypt()
* @see http://php.net/security/crypt_blowfish.php
*/
if ((version_compare(PHP_VERSION, '5.3.7') >= 0) && !$this->backwardCompatibility) {
if ((PHP_VERSION_ID >= 50307) && !$this->backwardCompatibility) {
$prefix = '$2y$';
} else {
$prefix = '$2a$';
Expand Down

0 comments on commit f753345

Please sign in to comment.