Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hash(): Unknown hashing algorithm: fnv1a64

i have strange problem and cant find solution in google, i have php script and im getting that error.

on my server there are: 1. Centos 7 64bit 2. Vesta CP and php version

PHP 5.5.28 (cli) (built: Aug 6 2015 08:53:05) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

Im getting that error

hash(): Unknown hashing algorithm: fnv1a64

here is code example

if (!empty($settings)) {
        return hash('fnv1a64', trim($settings->purchase_code));
    }
like image 209
L. P. Avatar asked Mar 25 '26 15:03

L. P.


1 Answers

The fnv1a64 hash was not added until 5.6.0. You can use fnv164 however.

See the changelog referencing bug 66698.

like image 169
Alex Howansky Avatar answered Mar 28 '26 05:03

Alex Howansky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!