<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.xdiff.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.xdiff-file-diff-binary.php',
    1 => 'xdiff_file_diff_binary',
    2 => 'xdiff_file_bdiff のエイリアス',
  ),
  'up' => 
  array (
    0 => 'ref.xdiff.php',
    1 => 'xdiff 関数',
  ),
  'prev' => 
  array (
    0 => 'function.xdiff-file-diff.php',
    1 => 'xdiff_file_diff',
  ),
  'next' => 
  array (
    0 => 'function.xdiff-file-merge3.php',
    1 => 'xdiff_file_merge3',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/xdiff/functions/xdiff-file-diff-binary.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.xdiff-file-diff-binary" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xdiff_file_diff_binary</h1>
  <p class="verinfo">(PECL xdiff &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">xdiff_file_diff_binary</span> &mdash; <span class="dc-title"><span class="function"><a href="function.xdiff-file-bdiff.php" class="function">xdiff_file_bdiff()</a></span> のエイリアス</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xdiff-file-diff-binary-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xdiff_file_diff_binary</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$old_file</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$new_file</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$dest</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   ふたつのファイルのバイナリ diff を作成し、その結果をパッチファイルとして保存します。
   この関数はテキストファイルとバイナリファイルの両方に適用可能です。
   できあがったパッチファイルを後で適用するには
   <span class="function"><a href="function.xdiff-file-bpatch.php" class="function">xdiff_file_bpatch()</a></span>.
   を使用します。
  </p>
  <p class="para">
   バージョン 1.5.0 以降では、この関数は <span class="function"><a href="function.xdiff-file-bdiff.php" class="function">xdiff_file_bdiff()</a></span>
   のエイリアスです。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xdiff-file-diff-binary-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">old_file</code></dt>
     <dd>
      <p class="para">
       最初のファイルへのパス。&quot;旧&quot; ファイルです。
      </p>
     </dd>
    
    
     <dt><code class="parameter">new_file</code></dt>
     <dd>
      <p class="para">
       2 番目のファイルへのパス。&quot;新&quot; ファイルです。
      </p>
     </dd>
    
    
     <dt><code class="parameter">dest</code></dt>
     <dd>
      <p class="para">
       結果のパッチファイルへのパス。
       &quot;旧&quot; ファイルと &quot;新&quot; ファイルの差分がこのファイルの内容となります。
       このファイルはバイナリフォーマットで、人間には読めない形式です。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xdiff-file-diff-binary-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.xdiff-file-diff-binary-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>xdiff_file_diff_binary()</strong></span> の例</strong></p>
    <div class="example-contents"><p>
     以下のコードは 2 つのアーカイブのバイナリ diff を作成します。
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$old_version </span><span style="color: #007700">= </span><span style="color: #DD0000">'my_script_1.0.tgz'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$new_version </span><span style="color: #007700">= </span><span style="color: #DD0000">'my_script_1.1.tgz'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">xdiff_file_diff_binary</span><span style="color: #007700">(</span><span style="color: #0000BB">$old_version</span><span style="color: #007700">, </span><span style="color: #0000BB">$new_version</span><span style="color: #007700">, </span><span style="color: #DD0000">'my_script.bdiff'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.xdiff-file-diff-binary-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    両方のファイルがメモリに読み込まれるので、
    memory_limit が十分大きな値に設定されていることを確認しましょう。
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xdiff-file-diff-binary-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.xdiff-file-bdiff.php" class="function" rel="rdfs-seeAlso">xdiff_file_bdiff()</a> - 2 つのファイルのバイナリ diff を作成する</span></li>
    <li><span class="function"><a href="function.xdiff-file-bpatch.php" class="function" rel="rdfs-seeAlso">xdiff_file_bpatch()</a> - ファイルにバイナリ diff 形式のパッチを適用する</span></li>
   </ul>
  </p>
 </div>


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