• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • Phar::getSignature()

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

    Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive

    说明

    publicPhar::getSignature(void): array

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

    参数

    返回值

    Array with the opened archive's signature inhashkey andMD5,SHA-1,SHA-256,SHA-512, orOpenSSLinhash_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.

    上篇:Phar::getPath()

    下篇:Phar::getStub()