<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.fileprocess.file.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'book.xdiff.php',
    1 => 'xdiff',
    2 => 'xdiff',
  ),
  'up' => 
  array (
    0 => 'refs.fileprocess.file.php',
    1 => 'Dateisystemrelevante Erweiterungen',
  ),
  'prev' => 
  array (
    0 => 'function.xattr-supported.php',
    1 => 'xattr_supported',
  ),
  'next' => 
  array (
    0 => 'xdiff.setup.php',
    1 => 'Installation/Konfiguration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xdiff/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.xdiff.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.xdiff" class="book">
 
 <h1 class="title">xdiff</h1>
 
 
 <div id="intro.xdiff" class="preface">
  <h1 class="title">Einführung</h1>
  <p class="para">
   xdiff extension enables you to create and apply patch files containing
   differences between different revisions of files.
  </p>
  <p class="para">
   This extension supports two modes of operation - on strings and on files, as well
   as two different patch formats - unified and binary. Unified patches are excellent
   for text files as they are human-readable and easy to review. For binary files like
   archives or images, binary patches will be adequate choice as they are binary safe and
   handle non-printable characters well.
  </p>
  <p class="para">
   Starting from version 1.5.0 there are two different sets of functions for generating
   binary patches. New functions - <span class="function"><a href="function.xdiff-string-rabdiff.php" class="function">xdiff_string_rabdiff()</a></span> and 
   <span class="function"><a href="function.xdiff-file-rabdiff.php" class="function">xdiff_file_rabdiff()</a></span> generate output compatible with older functions
   but are typically faster and generate smaller results. For more details about methods of
   generating binary patches and differences between them, please check 
   <a href="http://www.xmailserver.org/xdiff-lib.html" class="link external">&raquo;&nbsp;libxdiff</a> website.
  </p>
  <p class="para">
   This extension uses libxdiff to implement these functions. Please see
   <a href="http://www.xmailserver.org/xdiff-lib.html" class="link external">&raquo;&nbsp;http://www.xmailserver.org/xdiff-lib.html</a> for more information.
  </p>
 </div>
 
 
 







 





 







<ul class="chunklist chunklist_book"><li><a href="xdiff.setup.php">Installation/Konfiguration</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="xdiff.requirements.php">Anforderungen</a></li><li><a href="xdiff.installation.php">Installation</a></li></ul></li><li><a href="xdiff.constants.php">Vordefinierte Konstanten</a></li><li><a href="ref.xdiff.php">xdiff Funktionen</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.xdiff-file-bdiff.php">xdiff_file_bdiff</a> — Make binary diff of two files</li><li><a href="function.xdiff-file-bdiff-size.php">xdiff_file_bdiff_size</a> — Read a size of file created by applying a binary diff</li><li><a href="function.xdiff-file-bpatch.php">xdiff_file_bpatch</a> — Patch a file with a binary diff</li><li><a href="function.xdiff-file-diff.php">xdiff_file_diff</a> — Make unified diff of two files</li><li><a href="function.xdiff-file-diff-binary.php">xdiff_file_diff_binary</a> — Alias von xdiff_file_bdiff</li><li><a href="function.xdiff-file-merge3.php">xdiff_file_merge3</a> — Merge 3 files into one</li><li><a href="function.xdiff-file-patch.php">xdiff_file_patch</a> — Patch a file with an unified diff</li><li><a href="function.xdiff-file-patch-binary.php">xdiff_file_patch_binary</a> — Alias von xdiff_file_bpatch</li><li><a href="function.xdiff-file-rabdiff.php">xdiff_file_rabdiff</a> — Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm</li><li><a href="function.xdiff-string-bdiff.php">xdiff_string_bdiff</a> — Make binary diff of two strings</li><li><a href="function.xdiff-string-bdiff-size.php">xdiff_string_bdiff_size</a> — Read a size of file created by applying a binary diff</li><li><a href="function.xdiff-string-bpatch.php">xdiff_string_bpatch</a> — Patch a string with a binary diff</li><li><a href="function.xdiff-string-diff.php">xdiff_string_diff</a> — Make unified diff of two strings</li><li><a href="function.xdiff-string-diff-binary.php">xdiff_string_diff_binary</a> — Alias von xdiff_string_bdiff</li><li><a href="function.xdiff-string-merge3.php">xdiff_string_merge3</a> — Merge 3 strings into one</li><li><a href="function.xdiff-string-patch.php">xdiff_string_patch</a> — Patch a string with an unified diff</li><li><a href="function.xdiff-string-patch-binary.php">xdiff_string_patch_binary</a> — Alias von xdiff_string_bpatch</li><li><a href="function.xdiff-string-rabdiff.php">xdiff_string_rabdiff</a> — Make a binary diff of two strings using the Rabin's polynomial fingerprinting algorithm</li></ul></li></ul></div><?php manual_footer($setup); ?>