hash(): Unknown hashing algorithm: fnv1a64

Viewed 717

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));
    }
1 Answers

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

See the changelog referencing bug 66698.

Related