php-diff
php-diff copied to clipboard
A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc). Based on the difflib implementation in Python
The __construct function in SequenceMatcher produces Deprecated: Optional parameter `$junkCallback` declared before required parameter `$options` is implicitly treated as a required parameter [i.e. `$junkCallback` has a default but `$options` does...
Small library very useful for me. Thank's a lot ! Line 129 of the file lib/Dif/Renderer/Html/SideBySide.php should be corrected like this: `$toLine = $change['base']['offset'] + $no + 1; ` ->...
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /Diff/SequenceMatcher.php:353 $aLength = count($this->a); $bLength = count($this->b); Please fix by replacing with this...
Getting warnings about `fixSpaces` and passing a null to `strlen()`. Also, no boundaries check for $matches[1];
It avoids breaking the callback when no spaces are to be counted. This is a fixup for 2900dd97eb540488c0bc188a0f5b2b6224a41ddd (#42) /cc @petrkotek
This package (**chrisboulton/php-diff**) is abandoned and not supported for several years. There's 167 other packages that forked from this root repo, but they are ugly. Most of them doesn't contain...
hi update the change "Fix the ignoring of option context" in phpspec/php-diff [https://github.com/chrisboulton/php-diff/commit/60de296b39a235e8ec7861ad2ed61c0829fbb9ea](https://github.com/chrisboulton/php-diff/commit/60de296b39a235e8ec7861ad2ed61c0829fbb9ea)
Hello,I'm from China. When I use this php-diff,I was surprised! It's awsome! but when I diff tow file like follow: a.txt 构建具有中国特色的医学人才培养体系 b.txt 构建具有中国的医学人才培养体系 The php-diff crashed!
In the compare side by side is possible to wrap text? I'm compare for example two switches configurations that have for example encrypt password that are two long and to...
I am unable to add vertical scroll in php side by side difference. i need vertical scroll bar because i can't see the entire document.