mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15305] Close stream before throwing an exception
PHPBB3-15305
This commit is contained in:
parent
b311bb6411
commit
0ec50e9055
1 changed files with 1 additions and 0 deletions
|
@ -231,6 +231,7 @@ class local implements adapter_interface, stream_interface
|
|||
|
||||
if (stream_copy_to_stream($resource, $stream) === false)
|
||||
{
|
||||
fclose($stream);
|
||||
throw new exception('STORAGE_CANNOT_COPY_RESOURCE');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue