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:
parent
6d2c815c75
commit
e8a70dcb24
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user