Viewing File: /opt/alt/tests/alt-php81-pecl-xdiff_2.1.1-1.el8/tests/error-patch.phpt

--TEST--
xdiff_string_patch() error
--SKIPIF--
<?php if (!extension_loaded("xdiff")) print "skip"; ?>
--FILE--
<?php
$str = "123\n456\n";
$patch = "@@ -0,0 +0,0 @@\n 789\n +012\n 345\n";
$result = xdiff_string_patch($str, $patch);
var_dump($result);
?>
--EXPECT--
bool(false)
Back to Directory File Manager
<