略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Phar::getSignature

2024-11-14

Phar::getSignature

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)

Phar::getSignatureReturn MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive

说明

public Phar::getSignature(): array|false

Returns the verification signature of a phar archive in a hexadecimal string.

参数

返回值

Array with the opened archive's signature in hash key and MD5, SHA-1, SHA-256, SHA-512, or OpenSSL in hash_type. This signature is a hash calculated on the entire phar's contents, and may be used to verify the integrity of the archive. A valid signature is absolutely required of all executable phar archives if the phar.require_hash INI variable is set to true. If there is no signature, the function returns false.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/phar.getsignature.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3