[ticket/13306] move error_reporting call

https://tracker.phpbb.com/browse/PHPBB3-13306