Home > PHP > Function > xdiff > xdiff_string_patch_binary()

xdiff_string_patch_binary()

xdiff_string_patch_binary - Alias of xdiff_string_bpatch

Syntax

string xdiff_string_patch_binary (string $str, string $patch)

Arguments

  • str - The original binary string.
  • patch - The binary patch string.

Description

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.

Version

PHP PECL xdiff >= 0.2.0

Return value

Returns the patched string, or FALSE on error.