Permalink
Browse files

Merge branch 'hotfix/3340'

Close #3340
Fixes #3332
  • Loading branch information...
2 parents 8a1259f + 8cae878 commit 0eafb97fbc0169db4100b4df3637957fa5c440e9 @weierophinney weierophinney committed Jan 4, 2013
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();

0 comments on commit 0eafb97

Please sign in to comment.