diff --git a/reference/hash/functions/hash-copy.xml b/reference/hash/functions/hash-copy.xml index b21073b5b2..9a903078db 100644 --- a/reference/hash/functions/hash-copy.xml +++ b/reference/hash/functions/hash-copy.xml @@ -1,8 +1,7 @@ - - - + + hash_copy @@ -71,15 +70,15 @@ ]]> @@ -87,8 +86,8 @@ echo hash_final($copy_context), "\n"; &example.outputs; diff --git a/reference/hash/functions/hash-file.xml b/reference/hash/functions/hash-file.xml index 0bee25b4eb..ea16a070b9 100644 --- a/reference/hash/functions/hash-file.xml +++ b/reference/hash/functions/hash-file.xml @@ -1,7 +1,7 @@ - - + + @@ -27,7 +27,7 @@ algo - 要使用的散列算法的名称(例如:"md5","sha256","haval160,4" 等)。 + 要使用的散列算法的名称(例如:“md5”、“sha256”、“haval160,4”等)。 可以在 hash_algos 中查看当前支持的算法。 @@ -36,7 +36,7 @@ filename - 要进行散列运算的文件位置的 URL ;支持 fopen 封装协议。 + 要进行散列运算的文件位置的 URL;支持 fopen 封装协议。 @@ -95,18 +95,21 @@ &reftitle.examples; - <function>hash</function> 示例 + <function>hash_file</function> 示例 - ]]> &example.outputs; diff --git a/reference/hash/functions/hash-final.xml b/reference/hash/functions/hash-final.xml index 4d2aa59af8..064ee548c4 100644 --- a/reference/hash/functions/hash-final.xml +++ b/reference/hash/functions/hash-final.xml @@ -1,7 +1,7 @@ - - + + hash_final @@ -72,30 +72,6 @@ - - &reftitle.examples; - - - <function>hash_final</function> 示例 - - -]]> - - &example.outputs; - - - - - - - &reftitle.seealso; diff --git a/reference/hash/functions/hash-hmac-file.xml b/reference/hash/functions/hash-hmac-file.xml index de6b473e4b..e372fb8bf4 100644 --- a/reference/hash/functions/hash-hmac-file.xml +++ b/reference/hash/functions/hash-hmac-file.xml @@ -1,6 +1,6 @@ - + @@ -117,14 +117,14 @@ /* 创建一个要计算散列值的文件 */ file_put_contents('example.txt', 'The quick brown fox jumped over the lazy dog.'); -echo hash_hmac_file('md5', 'example.txt', 'secret'); +echo hash_hmac_file('sha256', 'example.txt', 'secret'); ?> ]]> &example.outputs; diff --git a/reference/hash/functions/hash-hmac.xml b/reference/hash/functions/hash-hmac.xml index fbdb822e90..ed4a0661a2 100644 --- a/reference/hash/functions/hash-hmac.xml +++ b/reference/hash/functions/hash-hmac.xml @@ -1,7 +1,7 @@ - - + + hash_hmac @@ -112,14 +112,14 @@ ]]> &example.outputs; @@ -134,6 +134,7 @@ b8e7ae12510bdfb1812e463a7f086122cf37e4f7 hash_hmac_algos hash_init hash_hmac_file + hash_equals diff --git a/reference/hash/functions/hash-init.xml b/reference/hash/functions/hash-init.xml index 15715a8b09..f441e8c10e 100644 --- a/reference/hash/functions/hash-init.xml +++ b/reference/hash/functions/hash-init.xml @@ -1,7 +1,7 @@ - - + + @@ -127,17 +127,23 @@ ]]> &example.outputs; diff --git a/reference/hash/functions/hash-update-stream.xml b/reference/hash/functions/hash-update-stream.xml index 87600b62be..da101f6eed 100644 --- a/reference/hash/functions/hash-update-stream.xml +++ b/reference/hash/functions/hash-update-stream.xml @@ -1,7 +1,7 @@ - - + + hash_update_stream @@ -89,10 +89,11 @@ @@ -101,7 +102,7 @@ echo hash_final($ctx); &example.outputs; diff --git a/reference/hash/functions/hash.xml b/reference/hash/functions/hash.xml index cdc9e808ed..0c2b1472f2 100644 --- a/reference/hash/functions/hash.xml +++ b/reference/hash/functions/hash.xml @@ -1,7 +1,7 @@ - - + + hash @@ -105,14 +105,14 @@ ]]> &example.outputs; diff --git a/reference/url/functions/get-headers.xml b/reference/url/functions/get-headers.xml index f0191d3f72..432a05ce46 100755 --- a/reference/url/functions/get-headers.xml +++ b/reference/url/functions/get-headers.xml @@ -1,7 +1,7 @@ - - + + get_headers @@ -154,7 +154,7 @@ $context = stream_context_create( ) ] ); -$headers = get_headers('http://example.com', $context); +$headers = get_headers('http://example.com', false, $context); ?> ]]>