= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)hash_update_file — 從文件向活躍的哈希運算上下文中填充數(shù)據(jù)說明hash_update_file(HashContext $hcontext, string">
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1)
hash_update_file — 從文件向活躍的哈希運算上下文中填充數(shù)據(jù)
$hcontext, string $filename, resource $scontext = null): bool
hcontext由 hash_init() 函數(shù)返回的哈希運算上下文。
filename要進行哈希運算的文件路徑,支持 fopen 封裝器。
scontext由 函數(shù)返回的流上下文。
成功時返回 true, 或者在失敗時返回 false。
| 版本 | 說明 |
|---|---|
| 7.2.0 | 接收參數(shù)從資源類型修改為 HashContext 對象類型。 |