Bug #81552 [Ver->Csd]: xdiff_string_bpatch() and others missing

From: Date: Tue, 24 May 2022 13:23:24 +0000
Subject: Bug #81552 [Ver->Csd]: xdiff_string_bpatch() and others missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241583@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81552&edit=1 ID: 81552 Updated by: remi@php.net Reported by: pleasestand at live dot com Summary: xdiff_string_bpatch() and others missing -Status: Verified +Status: Closed Type: Bug -Package: xdiff +Package: *General Issues PHP Version: Irrelevant -Assigned To: +Assigned To: remi Block user comment: N Private report: N New Comment: Fixed Previous Comments: ------------------------------------------------------------------------ [2021-10-25 09:48:52] 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: https://github.com/php/pecl-text-xdiff/pull/6 Patch: https://github.com/php/pecl-text-xdiff/pull/6.patch ------------------------------------------------------------------------ [2021-10-25 09:31:59] pleasestand at live dot com Description: ------------ 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: xdiff_file_bdiff() xdiff_file_bpatch() xdiff_string_bdiff() xdiff_string_bpatch() 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: https://github.com/php/pecl-text-xdiff/commit/7e762e743e8607d2007a02382d2c845a7a5b8682 Test script: --------------- <?php $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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81552&edit=1

« previous php.bugs (#241583) next »