mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01: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
@ -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…
x
Reference in New Issue
Block a user