mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Check phpinfo() available before using it
This commit is contained in:
parent
0868023216
commit
dd9dfeec18
@ -515,7 +515,7 @@ class Crypt_RSA
|
|||||||
case !function_exists('openssl_pkey_get_details'):
|
case !function_exists('openssl_pkey_get_details'):
|
||||||
define('CRYPT_RSA_MODE', CRYPT_RSA_MODE_INTERNAL);
|
define('CRYPT_RSA_MODE', CRYPT_RSA_MODE_INTERNAL);
|
||||||
break;
|
break;
|
||||||
case extension_loaded('openssl') && version_compare(PHP_VERSION, '4.2.0', '>=') && file_exists($this->configFile):
|
case function_exists('phpinfo') && extension_loaded('openssl') && version_compare(PHP_VERSION, '4.2.0', '>=') && file_exists($this->configFile):
|
||||||
// some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
|
// some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
|
||||||
ob_start();
|
ob_start();
|
||||||
@phpinfo();
|
@phpinfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user