http://tests.shwups.ch/diff_match_patch/
Would be great if someone can check it.
Still arrive 15 errors. (5.2.9 unix)
But on my local php-installations (5.2.4 win & 5.3 unix) only 9 errors
if i pass $patches to the function patch_addPadding as a reference:
function patch_addPadding(&$patches){...}
Maybe its useful to implement the native php-function levenshtein ??
http://php.net/manual/de/function.levenshtein.php
testDiffMain generates the error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 1024 bytes) in C:\Users\NUXODIN\workspace\test\dmp
\diff_match_patch.php on line 413
http://github.com/nuxodin/diff_match_patch-php
On 12 Jan., 13:31, Tobi <tobias.busc...@gmail.com> wrote:
> Updated!http://tests.shwups.ch/diff_match_patch/
>
> Still arrive 15 errors. (5.2.9 unix)
> But on my local php-installations (5.2.4 win & 5.3 unix) only 9 errors
> if i pass $patches to the function patch_addPadding as a reference:
> function patch_addPadding(&$patches){...}
>
> Maybe its useful to implement the native php-function levenshtein ??http://php.net/manual/de/function.levenshtein.php
A snipped result
Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\test
\diff_match_patch.php on line 797
Delta length (19) does not equal source text length (20).Ok
Delta length (19) does not equal source text length (18).Ok
Expected: '=7 -7 +%DA%82 %02 %5C %7C'
Actual: '=12 -12 +%5Cu0682 %5C %7C'
Warning: mb_strrpos() [function.mb-strrpos]: Offset is greater than
the length of haystack string in C:\inetpub\wwwroot\test
\diff_match_patch.php on line 1362
Invalid patch string: BadInvalid patch mode "P" in: atchOk
Warning: mb_strpos() [function.mb-strpos]: Empty delimiter in C:
\inetpub\wwwroot\test\diff_match_patch.php on line 1481
Any hints?
Thanks,
Larry