mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-16 10:03:01 -07:00
fclose($file) exception.
It happens that fclose trigger an Exception because the resource is already closed. After investigation, it seems that the $file get closed in the putObject function (l. 274) when the garbage collector clean the memory. The change fix this issue. Here is the related issue on the aws sdk repo: https://github.com/aws/aws-sdk-php/issues/929
This commit is contained in:
parent
ad0726e41e
commit
08c95b254a
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class SpacesConnect {
|
|||
catch (\Exception $e) {
|
||||
$this->HandleAWSException($e);
|
||||
} finally {
|
||||
if ($is_file) {
|
||||
if (is_resource($file)) {
|
||||
fclose($file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue