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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user