We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa7541 commit 221868fCopy full SHA for 221868f
1 file changed
src/Bugsnag/Notification.php
@@ -107,7 +107,11 @@ private function postWithCurl($url, $body)
107
curl_setopt($http, CURLOPT_CONNECTTIMEOUT, $this->config->timeout);
108
curl_setopt($http, CURLOPT_SSL_VERIFYPEER, false);
109
curl_setopt($http, CURLOPT_VERBOSE, false);
110
- curl_setopt($http, CURL_IPRESOLVE_V4, true);
+ if (defined('HHVM_VERSION')) {
111
+ curl_setopt($http, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
112
+ } else {
113
+ curl_setopt($http, CURL_IPRESOLVE_V4, true);
114
+ }
115
116
if (!empty($this->config->curlOptions)) {
117
foreach ($this->config->curlOptions as $option => $value) {
0 commit comments