hash_update_file 从文件向活跃的哈希运算上下文中填充数据

发表日期:2021-07-01 08:55:16 | 来源: | | 浏览(891) 分类:Hash 函数

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 对象类型。

参见

集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。