summaryrefslogtreecommitdiff
path: root/ext/hash/hash.c
diff options
context:
space:
mode:
authorMichael M Slusarz <slusarz@curecanti.org>2014-02-12 02:55:49 -0700
committerNikita Popov <nikic@php.net>2014-03-06 23:38:51 +0100
commitb88387d341c510ed434b333d640424f9fe3cc567 (patch)
treeee3c07b72912b9c52df94225b56d616de2432670 /ext/hash/hash.c
parent200c97829d79650f91e6939070a7db9790d0ec4a (diff)
downloadphp-git-b88387d341c510ed434b333d640424f9fe3cc567.tar.gz
Fix #66698: Add fnv1a32 and fnv1a64 hash options
Diffstat (limited to 'ext/hash/hash.c')
-rw-r--r--ext/hash/hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index 928ec778dc..945d2033d4 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -991,7 +991,9 @@ PHP_MINIT_FUNCTION(hash)
php_hash_register_algo("crc32", &php_hash_crc32_ops);
php_hash_register_algo("crc32b", &php_hash_crc32b_ops);
php_hash_register_algo("fnv132", &php_hash_fnv132_ops);
+ php_hash_register_algo("fnv1a32", &php_hash_fnv1a32_ops);
php_hash_register_algo("fnv164", &php_hash_fnv164_ops);
+ php_hash_register_algo("fnv1a64", &php_hash_fnv1a64_ops);
php_hash_register_algo("joaat", &php_hash_joaat_ops);
PHP_HASH_HAVAL_REGISTER(3,128);