X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php85-pecl-rar_4.2.0-3.el8/tests
opt
/
alt
/
tests
/
alt-php85-pecl-rar_4.2.0-3.el8
/
tests
/
??
..
??
001.phpt
(576 B)
??
002.phpt
(3.51 KB)
??
003.phpt
(2.04 KB)
??
004.phpt
(2.05 KB)
??
005.phpt
(789 B)
??
006.phpt
(413 B)
??
007.phpt
(340 B)
??
008.phpt
(902 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)
??
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)
??
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: 092.phpt
--TEST-- RarArchive::setAllowBroken has the desired effect --SKIPIF-- <?php if(!extension_loaded("rar")) print "skip"; ?> --FILE-- <?php require __DIR__ . "/php8compat.php.inc"; function retnull() { return null; } $b = dirname(__FILE__) . "/multi_broken.part1.rar"; echo "* broken file; bad arguments\n"; $a = RarArchive::open($b, null, 'retnull'); argerr(function() use ($a) { $a->setAllowBroken(); }); argerr(function() use ($a) { rar_allow_broken_set($a); }); echo "\n* broken file; do not allow broken (default)\n"; $a = RarArchive::open($b, null, 'retnull'); var_dump($a->getEntries()); var_dump(count($a)); echo "\n* broken file; do not allow broken (explicit)\n"; $a = RarArchive::open($b, null, 'retnull'); $a->setAllowBroken(false); var_dump($a->getEntries()); var_dump(count($a)); echo "\n* broken file; allow broken\n"; $a = RarArchive::open($b, null, 'retnull'); $a->setAllowBroken(true); foreach ($a->getEntries() as $e) { echo "$e\n"; } var_dump(count($a)); echo "\n* broken file; allow broken; non OOP\n"; $a = RarArchive::open($b, null, 'retnull'); rar_allow_broken_set($a, true); foreach ($a->getEntries() as $e) { echo "$e\n"; } var_dump(count($a)); echo "\n"; echo "Done.\n"; --EXPECTF-- * broken file; bad arguments Warning: RarArchive::setAllowBroken() expects exactly 1 parameter, 0 given in %s on line %d Warning: rar_allow_broken_set() expects exactly 2 parameters, 1 given in %s on line %d * broken file; do not allow broken (default) Warning: RarArchive::getEntries(): ERAR_EOPEN (file open error) in %s on line %d bool(false) Warning: %s(): ERAR_EOPEN (file open error) in %s on line %d int(0) * broken file; do not allow broken (explicit) Warning: RarArchive::getEntries(): ERAR_EOPEN (file open error) in %s on line %d bool(false) Warning: %s(): ERAR_EOPEN (file open error) in %s on line %d int(0) * broken file; allow broken RarEntry for file "file1.txt" (52b28202) int(1) * broken file; allow broken; non OOP RarEntry for file "file1.txt" (52b28202) int(1) Done.
Upload File
Create Folder