Skip to content

Commit

Permalink
Merge pull request #5 from peter279k/fix_php81_float
Browse files Browse the repository at this point in the history
Fix Implicit incompatible float issue in php-8.1
  • Loading branch information
bordoni authored May 27, 2022
2 parents d79e805 + c5d8b41 commit 12f8f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hautelook/Phpass/PasswordHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function gensalt_blowfish($input)
$itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';

$output = '$2a$';
$output .= chr(ord('0') + $this->iteration_count_log2 / 10);
$output .= chr(ord('0') + intval($this->iteration_count_log2 / 10));
$output .= chr(ord('0') + $this->iteration_count_log2 % 10);
$output .= '$';

Expand Down

0 comments on commit 12f8f5c

Please sign in to comment.