Added support for reporting max PHP version: came with user request 6056
Improved PECL detection: especially with SAPI extension.