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 diffSYNOPSISbool xdiff_file_bpatch (string $file, string $patch, string $dest)DESCRIPTIONPatches 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.PARAMETERSo $file - The original file. o $patch - The binary patch file. o $dest - Path of the resulting file.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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"; } ?>NOTESNote Both files ($file and $patch) will be loaded into memory so ensure that your memory_limit is set high enough.SEE ALSOxdiff_file_bdiff(3), xdiff_file_rabdiff(3). PHP Documentation Group XDIFF_FILE_BPATCH(3)
Related Man Pages |
---|
xdiff_string_diff(3) - php |
xdiff_file_diff(3) - php |
xdiff_string_patch(3) - php |
xdiff_file_merge3(3) - php |
xdiff_string_rabdiff(3) - php |
Similar Topics in the Unix Linux Community |
---|
unzip .tgz files |
sendmail failed after patch update |
Question on using a variable in KSH |
Verify patching |
Need patch policy help |