|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2021-10-25 09:48 UTC] pleasestand at live dot com
[2021-10-25 13:51 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2022-05-24 13:23 UTC] remi@php.net
-Status: Verified
+Status: Closed
-Package: xdiff
+Package: *General Issues
-Assigned To:
+Assigned To: remi
[2022-05-24 13:23 UTC] remi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
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