Remove conditions for PHP < 5.3.0 for this branch

This commit is contained in:
Cameron Eagans 2015-09-01 14:17:54 -04:00
parent df6b201ab9
commit 78bac871af

View File

@ -473,11 +473,7 @@ class RSA
case defined('MATH_BIGINTEGER_OPENSSL_DISABLE'):
define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
break;
// openssl_pkey_get_details - which is used in the only place Crypt/RSA.php uses OpenSSL - was introduced in PHP 5.2.0
case extension_loaded('openssl') && version_compare(PHP_VERSION, '5.2.0', "<="):
define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
break;
case extension_loaded('openssl') && version_compare(PHP_VERSION, '4.2.0', '>=') && file_exists($this->configFile):
case extension_loaded('openssl') && file_exists($this->configFile):
// some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
ob_start();
@phpinfo();