[ticket/13306] move error_reporting call

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

PHPBB3-13306
[ticket/13306] update test

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

PHPBB3-13306