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_bpatchSYNOPSISbool xdiff_file_patch_binary (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) 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).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_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"; } ?>NOTESNote Both files ($file and $patch) will be loaded into memory so ensure that your memory_limit is set high enough.SEE ALSOxdiff_string_patch_binary(3). PHP Documentation Group XDIFF_FILE_PATCH_BINARY(3)
Related Man Pages |
---|
xdiff_file_rabdiff(3) - php |
xdiff_string_patch(3) - php |
xdiff_file_bdiff(3) - php |
xdiff_file_bdiff_size(3) - php |
git-patch-id(1) - osx |
Similar Topics in the Unix Linux Community |
---|
unzip .tgz files |
Path data |
Create individual tgz files from a set of files |
RedHat patch date? |
Extracting specific files from multiple .tgz files |