[ticket/12483] Use file_put_contents()

PHPBB3-12483