PHP xdiff Functions
EditRocket provides the following information on xdiff functions in the PHP source code builder.
bool xdiff_file_diff ( string $file1 , string $file2 , string $dest [, int $context [, bool $minimal ]] ) - Makes a diff of two files and stores the result in a file.
bool xdiff_file_diff_binary ( string $file1 , string $file2 , string $dest ) - Makes a binary diff of two files and stores the result in a file. This function works with both text and binary files.
mixed xdiff_file_merge3 ( string $file1 , string $file2 , string $file3 , string $dest ) - Merges three files into one and stores the result in a file.
mixed xdiff_file_patch ( string $file , string $patch , string $dest [, int $flags ] ) - Patches a file with a unified patch and stores the result in a file.
bool xdiff_file_patch_binary ( string $file , string $patch , string $dest ) - Patches a file with a binary patch and stores the result in a file.
string xdiff_string_diff ( string $str1 , string $str2 [, int $context [, bool $minimal ]] ) - Makes a unified diff of two strings.
string xdiff_string_diff_binary ( string $str1 , string $str2 ) - Makes a binary diff of two strings.
mixed xdiff_string_merge3 ( string $str1 , string $str2 , string $str3 [, string &$error ] ) - Merges three strings into one.
string xdiff_string_patch ( string $str , string $patch [, int $flags [, string &$error ]] ) - Patches a string with a unified patch string.
string xdiff_string_patch_binary ( string $str , string $patch ) - Patches a string with a binary patch.