File manager - Edit - /opt/alt/tests/alt-php83-pecl-xdiff_2.1.1-1.el8/tests/031.phpt
Back
--TEST-- xdiff_string_patch() with context5.patch and reverse patching --SKIPIF-- <?php if (!extension_loaded("xdiff")) print "skip"; ?> --FILE-- <?php $a = file_get_contents(__DIR__ . '/lorem2.txt'); $b = file_get_contents(__DIR__ . '/context5.patch'); $c = xdiff_string_patch($a, $b, XDIFF_PATCH_REVERSE); $d = file_get_contents(__DIR__ . '/lorem1.txt'); echo strcmp($c, $d); ?> --EXPECT-- 0
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings