php man page for xdiff_file_bpatch

Query: xdiff_file_bpatch

OS: php

Section: 3

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

XDIFF_FILE_BPATCH(3)							 1						      XDIFF_FILE_BPATCH(3)

xdiff_file_bpatch - Patch a file with a binary diff

SYNOPSIS
bool xdiff_file_bpatch (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) and xdiff_file_rabdiff(3) functions or their string counterparts.
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_bpatch(3) example The following code applies binary diff to a file. <?php $old_version = 'archive-1.0.tgz'; $patch = 'archive.bpatch'; $result = xdiff_file_bpatch($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_file_bdiff(3), xdiff_file_rabdiff(3). PHP Documentation Group XDIFF_FILE_BPATCH(3)
Related Man Pages
git-patch-id(1) - suse
xdiff_file_rabdiff(3) - php
xdiff_string_patch(3) - php
xdiff_file_bpatch(3) - php
xdiff_file_patch(3) - php
Similar Topics in the Unix Linux Community
Patch help?
Create individual tgz files from a set of files
sendmail failed after patch update
Which tool to Patch SOL 9? - 3 tools found
RedHat patch date?