We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f28f4 commit 5cc2f04Copy full SHA for 5cc2f04
src/Phar/Reader.php
@@ -101,6 +101,10 @@ private function extractData(string $fileName): array
101
102
while (!feof($resource)) {
103
$line = fgets($resource);
104
+ // stop processing in case the system fails to read from a stream
105
+ if ($line === false) {
106
+ break;
107
+ }
108
// stop reading file when manifest can be extracted
109
if ($manifestLength !== null && $manifestContent !== null && strlen($manifestContent) >= $manifestLength) {
110
break;
0 commit comments