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

PHPBB3-12660
Merge pull request #2548 from bantu/ticket/12660

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