XDIFF_STRING_BDIFF_SIZE(3) 1 XDIFF_STRING_BDIFF_SIZE(3)xdiff_string_bdiff_size - Read a size of file created by applying a binary diffSYNOPSIS
int xdiff_string_bdiff_size (string $patch)
DESCRIPTION
Returns a size of a result file that would be created after applying binary $patch to the original file.
PARAMETERS
o $patch
- 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_string_bdiff_size(3) example
The following code applies reads a size of file that would be created after applying a binary diff.
<?php
$binary_patch = file_get_contents('file.bdiff');
$length = xdiff_string_bdiff_size($binary_patch);
echo "Resulting file will be $length bytes long";
?>
SEE ALSO xdiff_string_bdiff(3), xdiff_string_rabdiff(3), xdiff_string_bpatch(3).
PHP Documentation Group XDIFF_STRING_BDIFF_SIZE(3)
Check Out this Related Man Page
XDIFF_STRING_RABDIFF(3) 1 XDIFF_STRING_RABDIFF(3)xdiff_string_rabdiff - Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithmSYNOPSIS
string xdiff_string_bdiff (string $old_data, string $new_data)
DESCRIPTION
Makes a binary diff of two strings and returns the result. The difference between this function and xdiff_string_bdiff(3) is different
algorithm used which should result in faster execution and smaller diff produced. This function works with both text and binary data.
Resulting patch can be later applied using xdiff_string_bpatch(3)/xdiff_file_bpatch(3).
For more details about differences between algorithm used please check libxdiff website.
PARAMETERS
o $old_data
- First string with binary data. It acts as "old" data.
o $new_data
- Second string with binary data. It acts as "new" data.
RETURN VALUES
Returns string with binary diff containing differences between "old" and "new" data or FALSE if an internal error occurred.
SEE ALSO xdiff_string_bpatch(3).
PHP Documentation Group XDIFF_STRING_RABDIFF(3)
I'm applying patch 108993-65 and during the run it states"
NOTICE: The following file is being changed by this patch:
/etc/pam.conf
A copy of the previous version has been saved under the name:
/etc/pam.conf.pre108993-65
You must merge... (1 Reply)
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)
Hi,
Anyone can help on applying patch "PHP Vulnerability: CVE-2015-4601" on Centos 6.8 platform.
How can I install this patch in command line using "yum" or "rpm"? Do I need to download or there is a direct command.
Thanks in advance.
Ragards,
FSPalero (4 Replies)