[ticket/12288] Replace hardcoded php with $phpEx

PHPBB3-12288