1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 01:20:40 +01:00

[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);