array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.xdiff-string-patch-binary.php', 1 => 'xdiff_string_patch_binary', ), 'up' => array ( 0 => 'ref.xdiff.php', 1 => 'xdiff 函数', ), 'prev' => array ( 0 => 'function.xdiff-string-merge3.php', 1 => 'xdiff_string_merge3', ), 'next' => array ( 0 => 'function.xdiff-string-patch.php', 1 => 'xdiff_string_patch', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xdiff/functions/xdiff-string-patch-binary.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
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.
Starting with version 1.5.0 this function is an alias of xdiff_string_bpatch().
str
The original binary string.
patch
The binary patch string.
Returns the patched string, or false
on error.