1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-16 10:54:02 +02:00

Suppress warning when stream is not seekable

This commit is contained in:
Oliver Vogel
2023-10-25 16:18:02 +02:00
parent 8b2ccc1cd9
commit b3f2815eab
2 changed files with 4 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ class FilePointerImageDecoder extends BinaryImageDecoder
}
$contents = '';
rewind($input);
@rewind($input);
while (!feof($input)) {
$contents .= fread($input, 8192);
$contents .= fread($input, 1024);
}
return parent::decode($contents);

View File

@@ -15,9 +15,9 @@ class FilePointerImageDecoder extends BinaryImageDecoder
}
$contents = '';
rewind($input);
@rewind($input);
while (!feof($input)) {
$contents .= fread($input, 8192);
$contents .= fread($input, 1024);
}
return parent::decode($contents);