<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.phar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'phar.getsignature.php',
    1 => 'Phar::getSignature',
    2 => 'Phar アーカイブの MD5/SHA1/SHA256/SHA512/OpenSSL シグネチャを返す',
  ),
  'up' => 
  array (
    0 => 'class.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.getpath.php',
    1 => 'Phar::getPath',
  ),
  'next' => 
  array (
    0 => 'phar.getstub.php',
    1 => 'Phar::getStub',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/phar/Phar/getSignature.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.getsignature" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::getSignature</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::getSignature</span> &mdash; <span class="dc-title">Phar アーカイブの MD5/SHA1/SHA256/SHA512/OpenSSL シグネチャを返す</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.getsignature-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Phar::getSignature</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>


  <p class="para rdfs-comment">
   phar アーカイブの検証用シグネチャを、
   十六進文字列で返します。
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.getsignature-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getsignature-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   開いているアーカイブのシグネチャを配列で返します。
   キー <code class="literal">hash</code> にはシグネチャ自体を、そしてキー <code class="literal">hash_type</code>
   には <code class="literal">MD5</code>、<code class="literal">SHA-1</code>、
   <code class="literal">SHA-256</code>、<code class="literal">SHA-512</code> あるいは <code class="literal">OpenSSL</code>
   を格納します。
   このシグネチャは phar の中身全体から計算したハッシュで、
   アーカイブの整合性を検証する際に使用します。
   INI 設定 <a href="phar.configuration.php#ini.phar.require-hash" class="link">phar.require_hash</a>
   が true の場合は、すべての実行可能な phar が有効なシグネチャを持っている必要があります。
   シグネチャが存在しない場合、この関数は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>



</div><?php manual_footer($setup); ?>