mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/template-engine] Close output stream in compile().
There is no need to leave the stream to the garbage collector, and the amount of data stuck in it may be substantial. PHPBB3-9726
This commit is contained in:
parent
234b891a4b
commit
63ca4c2104
1 changed files with 4 additions and 1 deletions
|
@ -920,6 +920,9 @@ class phpbb_template_compile
|
|||
@fclose($source_handle);
|
||||
|
||||
rewind($destination_handle);
|
||||
return stream_get_contents($destination_handle);
|
||||
$contents = stream_get_contents($destination_handle);
|
||||
@fclose($dest_handle);
|
||||
|
||||
return $contents;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue