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

xdiff_file_patch

(PECL xdiff >= 0.2.0) Patch a file with an unified diff mixed xdiff_file_patch ( string $file, string $patch, string $dest [, int $flags = DIFF_PATCH_NORMAL ] ) Patches a file with a patch and stores the result in a file. patch has to be an unified diff created by xdiff_file_diff()/xdiff_string_diff() function. An optional flags parameter specifies mode of operation. Parameters: f

xdiff_file_merge3

(PECL xdiff >= 0.2.0) Merge 3 files into one mixed xdiff_file_merge3 ( string $old_file, string $new_file1, string $new_file2, string $dest ) Merges three files into one and stores the result in a file dest. The old_file is an original version while new_file1 and new_file2 are modified versions of an original. Parameters: old_file Path to the first file. It acts as "ol

xdiff_file_bdiff

(PECL xdiff >= 1.5.0) Make binary diff of two files bool xdiff_file_bdiff ( string $old_file, string $new_file, string $dest ) Makes a binary diff of two files and stores the result in a patch file. This function works with both text and binary files. Resulting patch file can be later applied using xdiff_file_bpatch()/xdiff_string_bpatch(). Parameters: old_file Path to

xdiff_file_diff_binary

(PECL xdiff >= 0.2.0) Alias of xdiff_file_bdiff bool xdiff_file_diff_binary ( string $old_file, string $new_file, string $dest ) Makes a binary diff of two files and stores the result in a patch file. This function works with both text and binary files. Resulting patch file can be later applied using xdiff_file_bpatch(). Starting with version 1.5.0 this function is an alias of xdiff_file_bdiff(). Parame

xattr_supported

(PECL xattr >= 1.0.0) Check if filesystem supports extended attributes bool xattr_supported ( string $filename [, int $flags = 0 ] ) This functions checks if the filesystem holding the given file supports extended attributes. Read access to the file is required. Parameters: filename The path of the tested file. flags Supported xatt

xdiff_file_diff

(PECL xdiff >= 0.2.0) Make unified diff of two files bool xdiff_file_diff ( string $old_file, string $new_file, string $dest [, int $context = 3 [, bool $minimal = false ]] ) Makes an unified diff containing differences between old_file and new_file and stores it in dest file. The resulting file is human-readable. An optional context parameter specifies how many lines of context should be added around each change. Setti

xdiff_file_bdiff_size

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

xattr_remove

(PECL xattr >= 0.9.0) Remove an extended attribute bool xattr_remove ( string $filename, string $name [, int $flags = 0 ] ) This function removes an extended attribute of a file. Extended attributes have two different namespaces: user and root. The user namespace is available to all users, while the root namespace is available only to users with root privileges. xattr operates on the user namespace by default, but thi

xdiff_file_bpatch

(PECL xdiff >= 1.5.0) Patch a file with a binary diff bool xdiff_file_bpatch ( string $file, string $patch, string $dest ) 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() and xdiff_file_rabdiff() functions or their string counterparts. Parameters: file The original file.