ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- opt/alt/tests/alt-php73-pecl-rar_4.2.0-3.el8/tests/019.phpt000064400000001416152365003770016444 0ustar00--TEST-- RarEntry::getStream() function (store method) --SKIPIF-- --FILE-- getStream(); echo $e->getName().": "; $a = ""; while (!feof($stream)) { $a .= fread($stream, 512); } 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-- 1 files: tese.txt: 787 bytes, CRC 23B93A7A Done opt/alt/tests/alt-php71-pecl-rar_4.2.0-3.el8/tests/019.phpt000064400000001416152367051570016445 0ustar00--TEST-- RarEntry::getStream() function (store method) --SKIPIF-- --FILE-- getStream(); echo $e->getName().": "; $a = ""; while (!feof($stream)) { $a .= fread($stream, 512); } 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-- 1 files: tese.txt: 787 bytes, CRC 23B93A7A Done opt/alt/tests/alt-php56-pecl-rar_4.2.0-3.el8/tests/019.phpt000064400000001416152376376700016455 0ustar00--TEST-- RarEntry::getStream() function (store method) --SKIPIF-- --FILE-- getStream(); echo $e->getName().": "; $a = ""; while (!feof($stream)) { $a .= fread($stream, 512); } 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-- 1 files: tese.txt: 787 bytes, CRC 23B93A7A Done