[ticket/12673] Revert to only SWC and add ICO

Reverting to original function type and add
support for ICO as it is added in PHP 5.3.0

PHPBB3-12673