--TEST-- rar_open()/RarEntry::extract() (headers level password) --SKIPIF-- --FILE-- extract(false, $tempfile)); echo "Content of first one follows:\n"; echo file_get_contents($tempfile); $stream = reset($entries)->getStream(); @unlink($tempfile); echo "\n"; echo "Done\n"; --EXPECTF-- Found 2 files. bool(true) Content of first one follows: Encrypted file 1 contents. Done