--TEST-- Bug 76592: solid files are partially extracted --SKIPIF-- setAllowBroken(true); // we don't fixup the headers checksum, only the contents. Ignore the error $entry = $rar->getEntry('test.dat') or die('Unable to get entry'); $contents = stream_get_contents($entry->getStream(), $entry->getUnpackedSize()); $crc32_rar = $entry->getCrc(); $crc32_cont = dechex(crc32($contents)); $crc32_orig_content = dechex(crc32($contents)); unlink($file); echo 'orig content size: ', strlen($middle), "\n"; echo 'read content size: ', strlen($contents), "\n"; if ($crc32_rar !== $crc32_cont) { die("CRC values do not match"); } if ($crc32_rar !== $crc32_orig_content) { die("CRC values do not match (2)"); } ?> ==DONE== --EXPECT-- orig content size: 10485760 read content size: 10485760 ==DONE==