Skip to content

Commit

Permalink
[1.x] Fixed curl verify host for synchronous mode (#767)
Browse files Browse the repository at this point in the history
* - fixed curl verify host

* Add (disabled) config for AppVeyor

* Revert unneeded change
  • Loading branch information
smartdev-cz authored and HazAT committed Feb 28, 2019
1 parent 82c6d9a commit ded5083
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 1.x-{build}
build: false
clone_depth: 2
clone_folder: c:\projects\sentry-php
skip_branch_with_pr: true
branches:
only:
- master
3 changes: 3 additions & 0 deletions lib/Raven/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,9 @@ protected function get_curl_options()
if ($this->curl_ssl_version) {
$options[CURLOPT_SSLVERSION] = $this->curl_ssl_version;
}
if ($this->verify_ssl === false) {
$options[CURLOPT_SSL_VERIFYHOST] = 0;
}
if ($this->curl_ipv4) {
$options[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4;
}
Expand Down

0 comments on commit ded5083

Please # to comment.