XDIFF_FILE_BDIFF_SIZE(3) 1 XDIFF_FILE_BDIFF_SIZE(3)xdiff_file_bdiff_size - Read a size of file created by applying a binary diffSYNOPSIS
int xdiff_file_bdiff_size (string $file)
DESCRIPTION
Returns a size of a result file that would be created after applying binary patch from file $file to the original file.
PARAMETERS
o $file
- The path to the binary patch created by xdiff_string_bdiff(3) or xdiff_string_rabdiff(3) function.
RETURN VALUES
Returns the size of file that would be created.
EXAMPLES
Example #1
xdiff_file_bdiff_size(3) example
The following code applies reads a size of file that would be created after applying a binary diff.
<?php
$length = xdiff_string_bdiff_size('file.bdiff');
echo "Resulting file will be $length bytes long";
?>
SEE ALSO xdiff_file_bdiff(3), xdiff_file_rabdiff(3), xdiff_file_bpatch(3).
PHP Documentation Group XDIFF_FILE_BDIFF_SIZE(3)
Check Out this Related Man Page
XDIFF_FILE_PATCH_BINARY(3) 1 XDIFF_FILE_PATCH_BINARY(3)xdiff_file_patch_binary - Alias of xdiff_file_bpatchSYNOPSIS
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)
Hi,
As in the solaris material i know that the patch is added through the command "patchadd <patch no.>".
But i need to know, what are all the steps we have to follow while applying a patch in a production server. My friend says that we have to detach mirror before applying patch and not... (6 Replies)
Hi Admins,
Basically i am HPUX guy.HP will release patch bundles every three months and the same we are applying on servers as proactive steps. Please let me know how it happens with AIX.
My servers are AIX 5.3 with TL 10 and some are TL 7.
These servers are installed 2 years back and... (1 Reply)