From 614a3fb8a441a9ed7e02b25ae6dfdb1856a87354 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 18 Nov 2005 20:17:31 +0000 Subject: [PATCH] Expose sha1() and sha1_file() functions when core funcs not present Not an issue yet, but could be... --- ext/hash/hash.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 02c16877db..b0fe0c0323 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -314,6 +314,11 @@ function_entry hash_functions[] = { PHP_NAMED_FE(md5_file, php_if_md5_file, NULL) #endif /* PHP_HASH_MD5_NOT_IN_CORE */ +#ifdef PHP_HASH_SHA1_NOT_IN_CORE + PHP_NAMED_FE(sha1, php_if_sha1, NULL) + PHP_NAMED_FE(sha1_file, php_if_sha1_file, NULL) +#endif /* PHP_HASH_SHA1_NOT_IN_CORE */ + {NULL, NULL, NULL} }; /* }}} */ -- 2.50.1