mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 02:18:56 +00:00
[ticket/17361] Remove fclose after write
PHPBB-17361
This commit is contained in:
parent
e9c445925b
commit
6d9a8ae8af
3 changed files with 0 additions and 15 deletions
|
@ -246,11 +246,6 @@ class upload
|
|||
$fp = fopen($destination, 'rb');
|
||||
|
||||
$this->storage->write($destination_name, $fp);
|
||||
|
||||
if (is_resource($fp))
|
||||
{
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -447,11 +447,6 @@ class filespec_storage
|
|||
$fp = fopen($this->filename, 'rb');
|
||||
|
||||
$storage->write($this->destination_file, $fp);
|
||||
|
||||
if (is_resource($fp))
|
||||
{
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
catch (\phpbb\storage\exception\storage_exception $e)
|
||||
{
|
||||
|
|
|
@ -195,11 +195,6 @@ class helper
|
|||
|
||||
$stream = $current_adapter->read($file);
|
||||
$new_adapter->write($file, $stream);
|
||||
|
||||
if (is_resource($stream))
|
||||
{
|
||||
fclose($stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue