Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
fix CurlFactory for PHP 7.3 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Schulze authored and sagikazarmark committed Jul 30, 2018
1 parent 6616f0b commit 80d4890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -10,7 +10,9 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- nightly

env:
global:
Expand All @@ -19,6 +21,7 @@ env:
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
include:
- php: 5.4
Expand Down
4 changes: 2 additions & 2 deletions src/Client/CurlFactory.php
Expand Up @@ -360,7 +360,7 @@ private function applyHandlerOptions(array $request, array &$options)
unset($options[CURLOPT_CAINFO]);
$options[CURLOPT_SSL_VERIFYHOST] = 0;
$options[CURLOPT_SSL_VERIFYPEER] = false;
continue;
continue 2;
}

$options[CURLOPT_SSL_VERIFYHOST] = 2;
Expand All @@ -379,7 +379,7 @@ private function applyHandlerOptions(array $request, array &$options)
case 'decode_content':

if ($value === false) {
continue;
continue 2;
}

$accept = Core::firstHeader($request, 'Accept-Encoding');
Expand Down

0 comments on commit 80d4890

Please sign in to comment.