2004-02-09 17:51:22 +00:00
|
|
|
<?xml version='1.0' encoding='iso-8859-1'?>
|
2007-02-19 00:05:05 +00:00
|
|
|
<!-- $Revision: 1.7 $ -->
|
2004-02-09 17:51:22 +00:00
|
|
|
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
2007-02-19 00:04:48 +00:00
|
|
|
<refentry id="function.xdiff-file-diff-binary">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>xdiff_file_diff_binary</refname>
|
|
|
|
<refpurpose>Make binary diff of two files</refpurpose>
|
|
|
|
</refnamediv>
|
2007-02-19 00:05:05 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-02-19 00:04:48 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>bool</type><methodname>xdiff_file_diff_binary</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>file1</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>file2</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>dest</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2007-02-19 00:05:05 +00:00
|
|
|
Makes a binary diff of two files and stores the result in a file.
|
|
|
|
This function works with both text and binary files.
|
2007-02-19 00:04:48 +00:00
|
|
|
</para>
|
2007-02-19 00:05:05 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>file1</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>file2</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>dest</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Path of the resulting file. Resulting file is in binary format.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
2007-02-19 00:04:48 +00:00
|
|
|
<para>
|
|
|
|
&return.success;
|
|
|
|
</para>
|
2007-02-19 00:05:05 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-02-19 00:04:48 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>xdiff_file_diff_binary</function> example</title>
|
2004-02-09 17:51:22 +00:00
|
|
|
<para>
|
2007-02-19 00:04:48 +00:00
|
|
|
The following code makes binary diff of two archives.
|
2004-02-09 17:51:22 +00:00
|
|
|
</para>
|
2007-02-19 00:04:48 +00:00
|
|
|
<programlisting role="php">
|
2004-08-19 10:23:26 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$old_version = 'my_script_1.0.tgz';
|
|
|
|
$new_version = 'my_script_1.1.tgz';
|
|
|
|
|
|
|
|
xdiff_file_diff_binary($old_version, $new_version, 'my_script.bdiff');
|
|
|
|
?>
|
|
|
|
]]>
|
2007-02-19 00:04:48 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2007-02-19 00:05:05 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Both files will be loaded into memory so ensure that your memory_limit is
|
|
|
|
set high enough.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2007-02-19 00:04:48 +00:00
|
|
|
<para>
|
2007-02-19 00:05:05 +00:00
|
|
|
<simplelist>
|
|
|
|
<member><function>xdiff_string_diff_binary</function></member>
|
|
|
|
</simplelist>
|
2007-02-19 00:04:48 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-02-19 00:05:05 +00:00
|
|
|
|
2007-02-19 00:04:48 +00:00
|
|
|
</refentry>
|
2004-02-09 17:51:22 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|