Methods with the same name as their class will not be constructors in a future version of PHP; PasswordHash has a deprecated constructor [duplicate] Methods with the same name as their class will not be constructors in a future version of PHP; PasswordHash has a deprecated constructor [duplicate] codeigniter codeigniter

Methods with the same name as their class will not be constructors in a future version of PHP; PasswordHash has a deprecated constructor [duplicate]


Change

function PasswordHash($iteration_count_log2, $portable_hashes)    {        $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';        if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31)            $iteration_count_log2 = 8;        $this->iteration_count_log2 = $iteration_count_log2;        $this->portable_hashes = $portable_hashes;        $this->random_state = microtime() . getmypid();    }

Into

function __constructor($iteration_count_log2, $portable_hashes)    {        $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';        if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31)            $iteration_count_log2 = 8;        $this->iteration_count_log2 = $iteration_count_log2;        $this->portable_hashes = $portable_hashes;        $this->random_state = microtime() . getmypid();    }

As said that Methods with the same name as their class you use __constructor to initialize the Class


Well this is because your code is pretty old and not compliant with new php 7.x. Try to see if an update has been released.