Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'hotfix/3340' into develop

Forward port #3340
  • Loading branch information...
commit 16d3b1f44722b4f76f89de3d70f50e4cc14f99b6 2 parents d213655 + 8cae878
@weierophinney weierophinney authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 library/Zend/Http/Client/Adapter/Socket.php
View
6 library/Zend/Http/Client/Adapter/Socket.php
@@ -283,8 +283,10 @@ public function connect($host, $port = 80, $secure = false)
if (!$test || $error) {
// Error handling is kind of difficult when it comes to SSL
$errorString = '';
- while (($sslError = openssl_error_string()) != false) {
- $errorString .= "; SSL error: $sslError";
+ if (extension_loaded('openssl')) {
+ while (($sslError = openssl_error_string()) != false) {
+ $errorString .= "; SSL error: $sslError";
+ }
}
$this->close();
Please sign in to comment.
Something went wrong with that request. Please try again.