Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 496 Bytes
RarEntry::getStream() on unicode entry
<?php if(!extension_loaded("rar")) print "skip"; ?>
$rar_file1 = rar_open(dirname(__FILE__).'/rar_unicode.rar');
$entry = rar_entry_get($rar_file1, "file1À۞.txt");
echo $entry."\n";
echo "\n";
$stream = $entry->getStream();
if ($stream !== false)
while (!feof($stream)) {
echo fread($stream, 8192);
echo "\n";
echo "Done\n";
RarEntry for file "file1À۞.txt" (52b28202)
contents of file 1
Something went wrong with that request. Please try again.