opensrs\Base::_verifySystemProperties PHP Метод

_verifySystemProperties() приватный Метод

Method to check the PHP version and OpenSSL PHP lib installation.
С версии: 3.1
    private function _verifySystemProperties()
    {
        if (!function_exists('version_compare') || version_compare('4.3', phpversion(), '>=')) {
            $error_message = 'PHP version must be v4.3+ (current version is ' . phpversion() . ') to use "SSL" encryption';
            throw new Exception($error_message);
        } elseif (!function_exists('openssl_open')) {
            $error_message = 'PHP must be compiled using --with-openssl to use "SSL" encryption';
            throw new Exception($error_message);
        }
    }