|
xdiff_file_diff(PECL xdiff >= 0.2.0) xdiff_file_diff — 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. Setting minimal parameter to true will result in outputting the shortest patch file possible (can take a long time). Список параметров
Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Примеры
Пример #1 xdiff_file_diff() example The following code makes unified diff of two php files with context length of 2.
<?php Примечания
|
|