array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.xdiff-string-bpatch.php', 1 => 'xdiff_string_bpatch', ), 'up' => array ( 0 => 'ref.xdiff.php', 1 => 'xdiff 函数', ), 'prev' => array ( 0 => 'function.xdiff-string-bdiff.php', 1 => 'xdiff_string_bdiff', ), 'next' => array ( 0 => 'function.xdiff-string-diff-binary.php', 1 => 'xdiff_string_diff_binary', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xdiff/functions/xdiff-string-bpatch.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL xdiff >= 1.5.0)
xdiff_string_bpatch — Patch a string with a binary diff
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.
str
The original binary string.
patch
The binary patch string.
Returns the patched string, or false
on error.