X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-pecl-rar_4.2.0-3.el8/tests
opt
/
alt
/
tests
/
alt-php80-pecl-rar_4.2.0-3.el8
/
tests
/
??
..
??
001.phpt
(576 B)
??
002.phpt
(3.51 KB)
??
003.phpt
(2.05 KB)
??
004.phpt
(2.05 KB)
??
005.phpt
(789 B)
??
006.phpt
(413 B)
??
007.phpt
(340 B)
??
008.phpt
(905 B)
??
009.phpt
(362 B)
??
010.phpt
(531 B)
??
011.phpt
(945 B)
??
012.phpt
(857 B)
??
013.phpt
(429 B)
??
014.phpt
(496 B)
??
015.phpt
(699 B)
??
016.phpt
(974 B)
??
017.phpt
(457 B)
??
018.phpt
(668 B)
??
019.phpt
(782 B)
??
020.phpt
(818 B)
??
021.phpt
(456 B)
??
022.phpt
(792 B)
??
023.phpt
(455 B)
??
024.phpt
(1.23 KB)
??
025.phpt
(688 B)
??
026.phpt
(1.77 KB)
??
027.phpt
(1.73 KB)
??
028.phpt
(270 B)
??
029.phpt
(553 B)
??
030.phpt
(331 B)
??
031.phpt
(312 B)
??
032.phpt
(418 B)
??
033.phpt
(608 B)
??
034.phpt
(447 B)
??
035.phpt
(534 B)
??
036.phpt
(513 B)
??
037.phpt
(685 B)
??
038.phpt
(402 B)
??
039.phpt
(425 B)
??
040.phpt
(689 B)
??
041.phpt
(689 B)
??
042.phpt
(953 B)
??
043.phpt
(1.06 KB)
??
044.phpt
(922 B)
??
046.phpt
(955 B)
??
047.phpt
(1.12 KB)
??
048.phpt
(808 B)
??
049.phpt
(980 B)
??
050.phpt
(290 B)
??
051.phpt
(1.45 KB)
??
052.phpt
(730 B)
??
053.phpt
(1.63 KB)
??
054.phpt
(2.86 KB)
??
055.phpt
(788 B)
??
056.phpt
(652 B)
??
057.phpt
(337 B)
??
058.phpt
(394 B)
??
059.phpt
(2.45 KB)
??
060.phpt
(1.01 KB)
??
061.phpt
(426 B)
??
062.phpt
(1.13 KB)
??
063.phpt
(503 B)
??
064.phpt
(1.07 KB)
??
065.phpt
(1.63 KB)
??
066.phpt
(1.63 KB)
??
067.phpt
(1.5 KB)
??
068.phpt
(480 B)
??
069.phpt
(473 B)
??
070.phpt
(302 B)
??
071.phpt
(425 B)
??
072.phpt
(434 B)
??
073.phpt
(547 B)
??
074.phpt
(695 B)
??
075.phpt
(1.39 KB)
??
076.phpt
(1.51 KB)
??
077.phpt
(1018 B)
??
078.phpt
(1.47 KB)
??
079.phpt
(1.3 KB)
??
080.phpt
(2.3 KB)
??
081.phpt
(2.54 KB)
??
082.phpt
(767 B)
??
085.phpt
(383 B)
??
086.phpt
(454 B)
??
087.phpt
(423 B)
??
088.phpt
(453 B)
??
089.phpt
(339 B)
??
090.phpt
(487 B)
??
091.phpt
(2.08 KB)
??
092.phpt
(1.98 KB)
??
093.phpt
(418 B)
??
094.phpt
(506 B)
??
095.phpt
(2.33 KB)
??
096.phpt
(744 B)
??
097.phpt
(756 B)
??
098.phpt
(815 B)
??
099.phpt
(607 B)
??
100.phpt
(678 B)
??
101.phpt
(1.25 KB)
??
102.phpt
(407 B)
??
103.phpt
(400 B)
??
104.phpt
(559 B)
??
105.phpt
(505 B)
??
106.phpt
(339 B)
??
107.phpt
(1.24 KB)
??
108.phpt
(261 B)
??
109.phpt
(289 B)
??
110.phpt
(280 B)
??
111.phpt
(262 B)
??
112.phpt
(260 B)
??
113.phpt
(408 B)
??
114.phpt
(1.81 KB)
??
115.phpt
(420 B)
??
4mb.rar
(2.46 KB)
??
commented.rar
(165 B)
??
corrupted.rar
(3.35 KB)
??
directories.rar
(212 B)
??
dirlink_unix.rar
(681 B)
??
dirs_and_extra_headers.rar
(4.01 KB)
??
empty_file.rar
(77 B)
??
encrypted_headers.rar
(284 B)
??
encrypted_only_files.rar
(237 B)
??
garbage.part03.rar
(900 B)
??
latest_winrar.rar
(712 B)
??
linux_rar.rar
(175 B)
??
multi.part1.rar
(4.88 KB)
??
multi.part2.rar
(4.88 KB)
??
multi.part3.rar
(3.95 KB)
??
multi_broken.part1.rar
(4.88 KB)
??
php8compat.php.inc
(567 B)
??
rar5-links.rar
(276 B)
??
rar5_multi.part1.rar
(50 KB)
??
rar5_multi.part2.rar
(6.27 KB)
??
rar_notrar.rar
(692 B)
??
rar_unicode.rar
(100 B)
??
repeated_name.rar
(162 B)
??
secret-crypted-none.rar
(3.71 KB)
??
secret-none.rar
(3.66 KB)
??
solid.rar
(4.94 KB)
??
sparsefiles_rar.rar
(5.56 KB)
??
store_method.rar
(859 B)
Editing: 114.phpt
--TEST-- Bug 76592: solid files are partially extracted --SKIPIF-- <?php if (!extension_loaded("rar")) die("skip"); if (PHP_OS != 'Linux') die('skip for linux'); if (PHP_VERSION_ID < 50400) die("skip for PHP 5.4+"); --FILE-- <?php $before = hex2bin('526172211a07010030f8db480d01050900080101c5808085800093f4589f2e02030b80808085800004808080858000b483020000000080380108746573742e6461740a031389bf735fa302a31c'); $after = hex2bin('a6e7161b0e0306be0000be000080000102514fe6dcc40b3900b38080053393f4589f2e02030b80808085800004808080858000b483020000000080380108746573742e6461740a031389bf735fa302a31c1d77565103050400'); $middle = file_get_contents('/dev/urandom', false, null, 0, 10 * 1024 * 1024) or die('failed file_get_contents'); $crc32hexbe = crc32($middle); $crc32le = pack('V', $crc32hexbe); $before = substr($before, 0, 50) . $crc32le . substr($before, 54); $after = substr($after, 0, 56) . $crc32le . substr($after, 60); $data = $before . $middle . $after; $file = tempnam('/tmp', 'rar'); file_put_contents($file, $data) or die('failed file_put contents'); $rar = \RarArchive::open($file) or die('Unable to open archive'); $rar->setAllowBroken(true); // we don't fixup the headers checksum, only the contents. Ignore the error $entry = $rar->getEntry('test.dat') or die('Unable to get entry'); $contents = stream_get_contents($entry->getStream(), $entry->getUnpackedSize()); $crc32_rar = $entry->getCrc(); $crc32_cont = dechex(crc32($contents)); $crc32_orig_content = dechex(crc32($contents)); unlink($file); echo 'orig content size: ', strlen($middle), "\n"; echo 'read content size: ', strlen($contents), "\n"; if ($crc32_rar !== $crc32_cont) { die("CRC values do not match"); } if ($crc32_rar !== $crc32_orig_content) { die("CRC values do not match (2)"); } ?> ==DONE== --EXPECT-- orig content size: 10485760 read content size: 10485760 ==DONE==
Upload File
Create Folder