[ticket/12653] Use an assoc array to store the listener list of an event

PHPBB3-12653