[ticket/15311] Use stream_copy_to_stream

PHPBB3-15311
This commit is contained in:
Rubén Calvo 2017-09-10 14:49:28 +02:00
parent 6d2c815c75
commit e8a70dcb24

View file

@ -350,10 +350,7 @@ class acp_database
$stream = $storage->read_stream($file_name);
$fp = fopen($temp_file_name, 'w+b');
while (!feof($stream))
{
fwrite($fp, fread($stream, 8192));
}
stream_copy_to_stream($stream, $fp);
fclose($fp);
fclose($stream);