2004-02-09 17:51:22 +00:00
|
|
|
<?xml version='1.0' encoding='iso-8859-1'?>
|
2004-08-20 09:37:01 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2004-02-09 17:51:22 +00:00
|
|
|
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
|
|
|
<refentry id="function.xdiff-file-diff-binary">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>xdiff_file_diff_binary</refname>
|
|
|
|
<refpurpose>
|
2004-08-20 09:37:01 +00:00
|
|
|
Make binary diff of two files
|
2004-02-09 17:51:22 +00:00
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2004-04-21 21:10:21 +00:00
|
|
|
<type>bool</type><methodname>xdiff_file_diff_binary</methodname>
|
2004-02-09 17:51:22 +00:00
|
|
|
<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>
|
|
|
|
<function>xdiff_file_diff_binary</function> makes binary diff of files
|
|
|
|
<parameter>file1</parameter> and <parameter>file2</parameter> and stores
|
2004-08-19 10:23:26 +00:00
|
|
|
result in file <parameter>dest</parameter>. This function works with both text
|
|
|
|
and binary files. Resulting file is in binary format.
|
2004-02-09 17:51:22 +00:00
|
|
|
</para>
|
2004-08-19 10:23:26 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Both files will be loaded into memory so ensure that your memory_limit is set high enough.
|
|
|
|
</para>
|
|
|
|
</note>
|
2004-02-09 17:51:22 +00:00
|
|
|
<para>
|
2004-02-09 18:22:05 +00:00
|
|
|
&return.success;
|
2004-02-09 17:51:22 +00:00
|
|
|
</para>
|
2004-08-19 10:23:26 +00:00
|
|
|
<example>
|
|
|
|
<title><function>xdiff_file_diff_binary</function> example</title>
|
|
|
|
<para>
|
|
|
|
The following code makes binary diff of two archives.
|
|
|
|
</para>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![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');
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2004-02-09 17:51:22 +00:00
|
|
|
<para>
|
|
|
|
See also <function>xdiff_string_diff_binary</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
-->
|