mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15311] Use stream_copy_to_stream
PHPBB3-15311
This commit is contained in:
parent
6d2c815c75
commit
e8a70dcb24
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue