<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/phar.fileformat.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'phar.fileformat.manifestfile.php',
    1 => 'Phar マニフェストのファイルエントリの定義',
    2 => 'Phar マニフェストのファイルエントリの定義',
  ),
  'up' => 
  array (
    0 => 'phar.fileformat.php',
    1 => 'phar って、tar や zip とは何が違うの?',
  ),
  'prev' => 
  array (
    0 => 'phar.fileformat.flags.php',
    1 => 'グローバルな Phar ビットマップフラグ',
  ),
  'next' => 
  array (
    0 => 'phar.fileformat.signature.php',
    1 => 'Phar のシグネチャの書式',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/phar/fileformat.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.fileformat.manifestfile" class="section">
 <h2 class="title">Phar マニフェストのファイルエントリの定義</h2>
 <p class="para">
  マニフェスト内の各ファイルについて、次のような情報が含まれます。
 </p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Phar マニフェストのファイルエントリ</strong></caption>
   
    <thead>
     <tr>
      <th>バイト数</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>4 バイト</td>
      <td>ファイル名の長さを表すバイト数。</td>
     </tr>

     <tr>
      <td>??</td>
      <td>ファイル名 (先ほど指定した長さになります)。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>圧縮前のファイルサイズを表すバイト数。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>ファイルの Unix タイムスタンプ。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>圧縮後のファイルサイズを表すバイト数。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>圧縮前のファイルの CRC32 チェックサム。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>ファイル固有のビットマップフラグ。</td>
     </tr>

     <tr>
      <td>4 バイト</td>
      <td>シリアライズされたファイルのメタデータの長さ (存在しない場合は <code class="literal">0</code>)。</td>
     </tr>

     <tr>
      <td>??</td>
      <td>シリアライズされたファイルのメタデータ。<span class="function"><a href="function.serialize.php" class="function">serialize()</a></span> の形式で格納される。</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 <p class="para">
  API バージョン 1.1.1 では、空のディレクトリの最後にスラッシュをつけて
  <code class="literal">my/directory/</code> のような形式で保存されることに注意しましょう。
 </p>
 <p class="para">
  ファイル固有のビットマップ値として認識される値は次のとおりです。
 </p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>認識されるビットマップ値</strong></caption>
   
    <thead>
     <tr>
      <th>値</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><code class="literal">0x000001FF</code></td>
      <td>
       これらのビットは、ファイルの特定のパーミッションを定義するために予約されています。
       このパーミッションは <span class="function"><a href="function.fstat.php" class="function">fstat()</a></span> で用いられ、
       ファイルを展開する際に特定のパーミッションを指定することができます。
      </td>
     </tr>

     <tr>
      <td><code class="literal">0x00001000</code></td>
      <td>
       設定されている場合、このファイルは
       zlib DEFLATE 圧縮されています。
      </td>
     </tr>

     <tr>
      <td><code class="literal">0x00002000</code></td>
      <td>
       設定されている場合、このファイルは
       bzip2 圧縮されています。
      </td>
     </tr>

    </tbody>
   
  </table>

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