xdiff

File differences/patches.


This extension creates and applies patches to both text and binary files.

License: PHP License

Latest releases

Version Release Download
2.2.0 2026-04-06 xdiff-2.2.0.tgz
2.1.1 2022-05-24 xdiff-2.1.1.tgz
2.1.0 2021-05-18 xdiff-2.1.0.tgz
2.0.1 2016-05-16 xdiff-2.0.1.tgz
2.0.0 2015-12-23 xdiff-2.0.0.tgz
Show all releases

Changelog

Version Message
2.2.0 - Fixed memory leak when $error parameter is refcounted in patch/merge functions
- Fixed inverted return value in xdiff_file_bpatch() (returned true on failure)
- Fixed missing error checks in xdiff_string_diff/bdiff/rabdiff()
- Fixed potential double-free and size overflow in append_string()
- Fixed unchecked php_stream_read() return in load_mm_file()
- Fixed size truncation: use size_t consistently, add LONG_MAX bounds checks
- Fixed signed/unsigned mismatches in callback functions
- Added PIE support (composer.json)
2.1.1 - Fixed bug #81552 xdiff_string_bpatch() and others missing (Kevin Israel)
- Fixed bug #77826 xdiff_string_bpatch wrong return value on error (SATO Kentaro)
2.1.0 - PHP 8 support
- Drop PHP 5 support
2.0.1 - Update License to PHP 3.1
2.0.0 - PHP 7 Release
Show complete changelog