= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)hash_update_file — 從文件向活躍的哈希運算上下文中填充數據說明hash_update_file(HashContext $hcontext, string">

hash_update_file

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)

hash_update_file從文件向活躍的哈希運算上下文中填充數據

說明

hash_update_file(HashContext $hcontext, string $filename, resource $scontext = null): bool

參數

hcontext

hash_init() 函數返回的哈希運算上下文。

filename

要進行哈希運算的文件路徑,支持 fopen 封裝器。

scontext

stream_context_create() 函數返回的流上下文。

返回值

成功時返回 true, 或者在失敗時返回 false。

更新日志

版本 說明
7.2.0 接收參數從資源類型修改為 HashContext 對象類型。

參見