[ticket/12597] Fix wrong global variable name

$pathEx changed to $phpEx

PHPBB3-12597