Simplify for PHP 5.3
parent
3979abc638
commit
0a25bb0bf3
|
@ -576,9 +576,8 @@ EOT
|
||||||
|
|
||||||
case 'openssl_version':
|
case 'openssl_version':
|
||||||
// Attempt to parse version number out, fallback to whole string value.
|
// Attempt to parse version number out, fallback to whole string value.
|
||||||
$opensslVersion = trim(strstr(OPENSSL_VERSION_TEXT, ' '));
|
$opensslVersion = strstr(trim(strstr(OPENSSL_VERSION_TEXT, ' ')), ' ', true);
|
||||||
$opensslVersion = substr($opensslVersion, 0, strpos($opensslVersion, ' '));
|
$opensslVersion = $opensslVersion ?: OPENSSL_VERSION_TEXT;
|
||||||
$opensslVersion = $opensslVersion ? $opensslVersion : OPENSSL_VERSION_TEXT;
|
|
||||||
|
|
||||||
$text = "The OpenSSL library ({$opensslVersion}) used by PHP does not support TLSv1.2 or TLSv1.1.".PHP_EOL;
|
$text = "The OpenSSL library ({$opensslVersion}) used by PHP does not support TLSv1.2 or TLSv1.1.".PHP_EOL;
|
||||||
$text .= "If possible you should upgrade OpenSSL to version 1.0.1 or above.";
|
$text .= "If possible you should upgrade OpenSSL to version 1.0.1 or above.";
|
||||||
|
|
Loading…
Reference in New Issue