[ticket/12273] Make event exporter compatible with php 5.3.3

PHPBB3-12273