mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-20 02:48:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166882 c90b9560-bf6c-de11-be94-00142212c4b1
74 lines
2.2 KiB
XML
74 lines
2.2 KiB
XML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- 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>
|
|
Make binary diff of two files
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<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>
|
|
<function>xdiff_file_diff_binary</function> makes binary diff of files
|
|
<parameter>file1</parameter> and <parameter>file2</parameter> and stores
|
|
result in file <parameter>dest</parameter>. This function works with both text
|
|
and binary files. Resulting file is in binary format.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Both files will be loaded into memory so ensure that your memory_limit is set high enough.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
<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>
|
|
<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
|
|
-->
|