mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 12:29:43 +02: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);
|
$stream = $storage->read_stream($file_name);
|
||||||
$fp = fopen($temp_file_name, 'w+b');
|
$fp = fopen($temp_file_name, 'w+b');
|
||||||
|
|
||||||
while (!feof($stream))
|
stream_copy_to_stream($stream, $fp);
|
||||||
{
|
|
||||||
fwrite($fp, fread($stream, 8192));
|
|
||||||
}
|
|
||||||
|
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user