[ticket/11768] Added typehint

PHPBB3-11768
[ticket/11768] Default to the file cache driver in set_s9e_services()

PHPBB3-11768
[ticket/11768] Added sql_freeresult() everywhere

PHPBB3-11768