--TEST-- RarEntry::getStream() function (broken set fixed with volume callback) --SKIPIF-- --FILE-- getStream(); echo $e->getName().": "; $a = ""; while (is_resource($stream) && !feof($stream)) { $a .= fread($stream, 8192); } echo strlen($a)." bytes, CRC "; echo int32_to_hex(crc32($a))."\n\n"; //you can confirm they're equal to those given by $e->getCrc() } echo "Done\n"; ?> --EXPECTF-- file1.txt: 18 bytes, CRC 52B28202 file2.txt: 17704 bytes, CRC F2C79881 file3.txt: 18 bytes, CRC BCBCE32E Done