Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3340'
Browse files Browse the repository at this point in the history
Close #3340
Fixes #3332
  • Loading branch information
weierophinney committed Jan 4, 2013
2 parents 74daaa4 + cef9a62 commit 7753ee1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/Zend/Http/Client/Adapter/Socket.php
Expand Up @@ -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();

Expand Down

0 comments on commit 7753ee1

Please sign in to comment.