Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (19 sloc) 534 Bytes
rar_entry_get() non-existent file with exceptions
<?php if(!extension_loaded("rar")) print "skip"; ?>
$arch = RarArchive::open(dirname(__FILE__) . "/latest_winrar.rar");
try {
} catch (RarException $re) {
echo "Message: " . $re->getMessage()."\n";
echo "Code: " . $re->getCode() ."\n";
echo "Done.\n";
Message: cannot find file "nonexistentfile.txt" in Rar archive "%slatest_winrar.rar"
Code: -1
Something went wrong with that request. Please try again.