projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c213de
)
Expose sha1() and sha1_file() functions when core funcs not present
author
Sara Golemon
<pollita@php.net>
Fri, 18 Nov 2005 20:17:31 +0000
(20:17 +0000)
committer
Sara Golemon
<pollita@php.net>
Fri, 18 Nov 2005 20:17:31 +0000
(20:17 +0000)
Not an issue yet, but could be...
ext/hash/hash.c
patch
|
blob
|
history
diff --git
a/ext/hash/hash.c
b/ext/hash/hash.c
index 02c16877db800c899432c0b942500d7a232dd481..b0fe0c03232ea4d44cdc2b4f54bb41b32f8af2b9 100644
(file)
--- 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}
};
/* }}} */