|
PHP5中文手册
xdiff_file_patch(PECL xdiff:0.2-1.4) xdiff_file_patch — Patch a file with an unified diff 说明
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. 参数
返回值Returns FALSE if an internal error happened, string with rejected chunks of patch or TRUE if patch has been successfully applied. 范例
Example#1 xdiff_file_patch() example The following code applies unified diff to a file.
<?php Example#2 Patch reversing example The following code reverses a patch.
<?php |