Skip to content

Commit

Permalink
This implementation is required as PHP 7 has deprecated the PHP 4 sty…
Browse files Browse the repository at this point in the history
…le constructors (methods that have the same name as the class they are defined in).
  • Loading branch information
BirenRathod committed Feb 22, 2017
1 parent 6c296b1 commit fccd854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpass/PasswordHash.php
Expand Up @@ -30,7 +30,7 @@ class PasswordHash {
var $portable_hashes;
var $random_state;

function PasswordHash($iteration_count_log2, $portable_hashes)
function __construct($iteration_count_log2, $portable_hashes)
{
$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';

Expand Down

0 comments on commit fccd854

Please sign in to comment.