ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- opt/alt/tests/alt-php82-pecl-rar_4.2.0-3.el8/tests/099.phpt000064400000001137152352434230016447 0ustar00--TEST-- Bug #59939: Streaming empty file from archive issues a warning --SKIPIF-- --FILE-- getEntry('empty_file'); if ($rar_file === false) die("could not find entry"); $stream = $rar_file->getStream(); if ($stream === false) die("could not open stream"); var_dump(feof($stream), fread($stream, 1024*1024), feof($stream)); echo "\n"; echo "Done.\n"; ?> --EXPECT-- bool(false) string(0) "" bool(true) Done. opt/alt/tests/alt-php81-pecl-rar_4.2.0-3.el8/tests/099.phpt000064400000001137152352716720016455 0ustar00--TEST-- Bug #59939: Streaming empty file from archive issues a warning --SKIPIF-- --FILE-- getEntry('empty_file'); if ($rar_file === false) die("could not find entry"); $stream = $rar_file->getStream(); if ($stream === false) die("could not open stream"); var_dump(feof($stream), fread($stream, 1024*1024), feof($stream)); echo "\n"; echo "Done.\n"; ?> --EXPECT-- bool(false) string(0) "" bool(true) Done. opt/alt/tests/alt-php56-pecl-rar_4.2.0-3.el8/tests/099.phpt000064400000001137152352750560016457 0ustar00--TEST-- Bug #59939: Streaming empty file from archive issues a warning --SKIPIF-- --FILE-- getEntry('empty_file'); if ($rar_file === false) die("could not find entry"); $stream = $rar_file->getStream(); if ($stream === false) die("could not open stream"); var_dump(feof($stream), fread($stream, 1024*1024), feof($stream)); echo "\n"; echo "Done.\n"; ?> --EXPECT-- bool(false) string(0) "" bool(true) Done.