xdiff_string_rabdiff

(PECL xdiff >= 1.5.0) Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithm string xdiff_string_bdiff ( string $old_data, string $new_data ) Makes a binary diff of two strings and returns the result. The difference between this function and xdiff_string_bdiff() is different algorithm used which should result in faster execution and smaller diff produced. This function works with both text a

xdiff_string_patch

(PECL xdiff >= 0.2.0) Patch a string with an unified diff string xdiff_string_patch ( string $str, string $patch [, int $flags [, string &$error ]] ) Patches a str string with an unified patch in patch parameter and returns the result. patch has to be an unified diff created by xdiff_file_diff()/xdiff_string_diff() function. An optional flags parameter specifies mode of operation. Any rejected parts of the patch will

xdiff_string_patch_binary

(PECL xdiff >= 0.2.0) Alias of xdiff_string_bpatch string xdiff_string_patch_binary ( string $str, string $patch ) Patches a string str with a binary patch. This function accepts patches created both via xdiff_string_bdiff() and xdiff_string_rabdiff() functions or their file counterparts. Starting with version 1.5.0 this function is an alias of xdiff_string_bpatch(). Parameters:

xdiff_string_merge3

(PECL xdiff >= 0.2.0) Merge 3 strings into one mixed xdiff_string_merge3 ( string $old_data, string $new_data1, string $new_data2 [, string &$error ] ) Merges three strings into one and returns the result. The old_data is an original version of data while new_data1 and new_data2 are modified versions of an original. An optional error is used to pass any rejected parts during merging process. Parameter

xdiff_string_diff

(PECL xdiff >= 0.2.0) Make unified diff of two strings string xdiff_string_diff ( string $old_data, string $new_data [, int $context = 3 [, bool $minimal = false ]] ) Makes an unified diff containing differences between old_data string and new_data string and returns it. The resulting diff is human-readable. An optional context parameter specifies how many lines of context should be added around each change. Setting min

xdiff_string_diff_binary

(PECL xdiff >= 0.2.0) Alias of xdiff_string_bdiff string xdiff_string_bdiff ( string $old_data, string $new_data ) Makes a binary diff of two strings and returns the result. This function works with both text and binary data. Resulting patch can be later applied using xdiff_string_bpatch()/xdiff_file_bpatch(). Starting with version 1.5.0 this function is an alias of xdiff_string_bdiff(). Parameters:

xdiff_string_bpatch

(PECL xdiff >= 1.5.0) Patch a string with a binary diff string xdiff_string_bpatch ( string $str, string $patch ) Patches a string str with a binary patch. This function accepts patches created both via xdiff_string_bdiff() and xdiff_string_rabdiff() functions or their file counterparts. Parameters: str The original binary string. patch

xdiff_string_bdiff

(PECL xdiff >= 1.5.0) Make binary diff of two strings string xdiff_string_bdiff ( string $old_data, string $new_data ) Makes a binary diff of two strings and returns the result. This function works with both text and binary data. Resulting patch can be later applied using xdiff_string_bpatch()/xdiff_file_bpatch(). Parameters: old_data First string with binary data. It

xdiff_string_bdiff_size

(PECL xdiff >= 1.5.0) Read a size of file created by applying a binary diff int xdiff_string_bdiff_size ( string $patch ) Returns a size of a result file that would be created after applying binary patch to the original file. Parameters: patch The binary patch created by xdiff_string_bdiff() or xdiff_string_rabdiff() function. Returns: Returns

xdiff_file_rabdiff

(PECL xdiff >= 1.5.0) Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm bool xdiff_file_rabdiff ( string $old_file, string $new_file, string $dest ) Makes a binary diff of two files and stores the result in a patch file. The difference between this function and xdiff_file_bdiff() is different algorithm used which should result in faster execution and smaller diff produced. This function w