|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81552 xdiff_string_bpatch() and others missing
Submitted: 2021-10-25 09:31 UTC Modified: 2022-05-24 13:23 UTC
From: pleasestand at live dot com Assigned: remi (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pleasestand at live dot com
New email:
PHP Version: OS:


 [2021-10-25 09:31 UTC] pleasestand at live dot com
In PECL xdiff 2.1.0, the arginfo is now generated from a stub file. Unfortunately, the stub file includes the aliases but leaves out the actual names for the following functions:


This breaks scripts that call these functions using their actual names as opposed to the aliases ("_binary" at the end instead of "b"). The bug was introduced in the following commit:

Test script:
$s1 = 'The quick brown fox jumps over the lazy dog.';
$s2 = 'The quick brown fox jumps over the lazy cog.';
var_dump(xdiff_string_bpatch($s1, xdiff_string_bdiff($s1, $s2)));

Expected result:
string(44) "The quick brown fox jumps over the lazy cog."

Actual result:
PHP Fatal error:  Uncaught Error: Call to undefined function xdiff_string_bpatch() in /home/ki/test.php:4
Stack trace:
#0 {main}
  thrown in /home/ki/test.php on line 4


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-25 09:48 UTC] pleasestand at live dot com
The following pull request has been associated:

Patch Name: Fixed bug #81552 (xdiff_string_bpatch() and others missing)
On GitHub:
 [2021-10-25 13:51 UTC]
-Status: Open +Status: Verified
 [2022-05-24 13:23 UTC]
-Status: Verified +Status: Closed -Package: xdiff +Package: *General Issues -Assigned To: +Assigned To: remi
 [2022-05-24 13:23 UTC]
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 01 05:03:40 2023 UTC