mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02: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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user