php man page for xdiff_file_patch_binary

Query: xdiff_file_patch_binary

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

XDIFF_FILE_PATCH_BINARY(3)						 1						XDIFF_FILE_PATCH_BINARY(3)

xdiff_file_patch_binary - Alias of xdiff_file_bpatch

SYNOPSIS
bool xdiff_file_patch_binary (string $file, string $patch, string $dest)
DESCRIPTION
Patches a $file with a binary $patch and stores the result in a file $dest. This function accepts patches created both via xdiff_file_bdiff(3) or xdiff_file_rabdiff(3) functions or their string counterparts. Starting with version 1.5.0 this function is an alias of xdiff_file_bpatch(3).
PARAMETERS
o $file - The original file. o $patch - The binary patch file. o $dest - Path of the resulting file.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 xdiff_file_patch_binary(3) example The following code applies binary diff to a file. <?php $old_version = 'archive-1.0.tgz'; $patch = 'archive.bpatch'; $result = xdiff_file_patch_binary($old_version, $patch, 'archive-1.1.tgz'); if ($result) { echo "File patched"; } else { echo "File couldn't be patched"; } ?>
NOTES
Note Both files ($file and $patch) will be loaded into memory so ensure that your memory_limit is set high enough.
SEE ALSO
xdiff_string_patch_binary(3). PHP Documentation Group XDIFF_FILE_PATCH_BINARY(3)
Related Man Pages
git-patch-id(1) - suse
xdiff_file_bdiff(3) - php
xdiff_file_merge3(3) - php
xdiff_file_patch(3) - php
xdiff_string_rabdiff(3) - php
Similar Topics in the Unix Linux Community
Question on using a variable in KSH
Need patch policy help
[Solved] Patching HP-UX 11.31 from DVD vs. ITRC
AIX server patching
Ps command different behaviour