summaryrefslogtreecommitdiff
path: root/ext/hash/hash_haval.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-04-21 15:37:46 +0000
committerAntony Dovgal <tony2001@php.net>2008-04-21 15:37:46 +0000
commit7c98e674b59ae0bd2a2b146d34df2a4c176cfa14 (patch)
tree9aa562ffa4ec1f45636a034006f86916f9952364 /ext/hash/hash_haval.c
parent30437c12411a2ee8d6966d1a8197bd48847f3036 (diff)
downloadphp-git-7c98e674b59ae0bd2a2b146d34df2a4c176cfa14.tar.gz
[DOC] add hash_copy() to be able to copy hash resource
Diffstat (limited to 'ext/hash/hash_haval.c')
-rw-r--r--ext/hash/hash_haval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/hash/hash_haval.c b/ext/hash/hash_haval.c
index 62522a7164..2df1dbdd60 100644
--- a/ext/hash/hash_haval.c
+++ b/ext/hash/hash_haval.c
@@ -254,6 +254,7 @@ const php_hash_ops php_hash_##p##haval##b##_ops = { \
(php_hash_init_func_t) PHP_##p##HAVAL##b##Init, \
(php_hash_update_func_t) PHP_HAVALUpdate, \
(php_hash_final_func_t) PHP_HAVAL##b##Final, \
+ (php_hash_copy_func_t) php_hash_copy, \
((b) / 8), 128, sizeof(PHP_HAVAL_CTX) }; \
PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \
{ int i; context->count[0] = context->count[1] = 0; \