[ticket/12710] Compare to uppercase version

PHPBB3-12710
[ticket/12710] Debug

PHPBB3-12710