[ticket/12660] Improve check for when phpinfo() is disabled.

PHPBB3-12660