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

https://tracker.phpbb.com/browse/PHPBB3-12660