Skip to content
This repository
Browse code

Check for openssl extension

  • Loading branch information...
commit a3e7a9fb9a378c96df66deb7daeaf229a2a06a16 1 parent aaf1531
Ingo Walz iwalz authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 library/Zend/Http/Client/Adapter/Socket.php
6 library/Zend/Http/Client/Adapter/Socket.php
@@ -283,8 +283,10 @@ public function connect($host, $port = 80, $secure = false)
283 283 if (!$test || $error) {
284 284 // Error handling is kind of difficult when it comes to SSL
285 285 $errorString = '';
286   - while (($sslError = \openssl_error_string()) != false) {
287   - $errorString .= "; SSL error: $sslError";
  286 + if (extension_loaded('openssl')) {
  287 + while (($sslError = openssl_error_string()) != false) {
  288 + $errorString .= "; SSL error: $sslError";
  289 + }
288 290 }
289 291 $this->close();
290 292

0 comments on commit a3e7a9f

Please sign in to comment.
Something went wrong with that request. Please try again.