mirror of
https://github.com/Intervention/image.git
synced 2025-08-17 03:13:59 +02:00
Suppress warning when stream is not seekable
This commit is contained in:
@@ -15,9 +15,9 @@ class FilePointerImageDecoder extends BinaryImageDecoder
|
|||||||
}
|
}
|
||||||
|
|
||||||
$contents = '';
|
$contents = '';
|
||||||
rewind($input);
|
@rewind($input);
|
||||||
while (!feof($input)) {
|
while (!feof($input)) {
|
||||||
$contents .= fread($input, 8192);
|
$contents .= fread($input, 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::decode($contents);
|
return parent::decode($contents);
|
||||||
|
@@ -15,9 +15,9 @@ class FilePointerImageDecoder extends BinaryImageDecoder
|
|||||||
}
|
}
|
||||||
|
|
||||||
$contents = '';
|
$contents = '';
|
||||||
rewind($input);
|
@rewind($input);
|
||||||
while (!feof($input)) {
|
while (!feof($input)) {
|
||||||
$contents .= fread($input, 8192);
|
$contents .= fread($input, 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::decode($contents);
|
return parent::decode($contents);
|
||||||
|
Reference in New Issue
Block a user