From: Sara Golemon Date: Fri, 18 Nov 2005 20:17:31 +0000 (+0000) Subject: Expose sha1() and sha1_file() functions when core funcs not present X-Git-Tag: RELEASE_2_0_2~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=614a3fb8a441a9ed7e02b25ae6dfdb1856a87354;p=php Expose sha1() and sha1_file() functions when core funcs not present Not an issue yet, but could be... --- 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} }; /* }}} */