📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-01 13:21:20
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-xdiff_2.2.0-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-xdiff_2.2.0-1.el8/tests
🔄 Refresh
✏️
Editing: file_bpatch_retval.phpt
Read Only
--TEST-- xdiff_file_bpatch() return value on success and failure --SKIPIF-- <?php if (!extension_loaded("xdiff")) print "skip"; ?> --FILE-- <?php $result = xdiff_file_bpatch(__DIR__ . '/file.1', __DIR__ . '/file.bdiff', __DIR__ . '/file.bpatch_out'); var_dump($result); $a = file_get_contents(__DIR__ . '/file.2'); $b = file_get_contents(__DIR__ . '/file.bpatch_out'); echo "content match: " . (strcmp($a, $b) === 0 ? "yes" : "no") . "\n"; unlink(__DIR__ . '/file.bpatch_out'); $result = xdiff_file_bpatch(__DIR__ . '/file.1', __DIR__ . '/file.1', __DIR__ . '/file.bpatch_out2'); var_dump($result); @unlink(__DIR__ . '/file.bpatch_out2'); ?> --EXPECT-- bool(true) content match: yes bool(false)
💾 Save Changes
❌ Cancel