Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Commit 6d4d7f5

Browse files
committed
fix path for ca_bundle in CasperAgent
1 parent 0a0d718 commit 6d4d7f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Casper-API-PHP/CasperAgent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function request($endpoint, $headers = array(), $params = array(), $post
152152
//If cURL doesn't have a bundle of root certificates handy,
153153
//we provide ours (see http://curl.haxx.se/docs/sslcerts.html).
154154
if(curl_errno($ch) == 60){
155-
curl_setopt($ch, CURLOPT_CAINFO, "../ca_bundle.crt");
155+
curl_setopt($ch, CURLOPT_CAINFO, __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."ca_bundle.crt");
156156
$result = curl_exec($ch);
157157
}
158158

@@ -238,7 +238,7 @@ public function externalRequest($url, $headers = array(), $params = array(), $po
238238
//If cURL doesn't have a bundle of root certificates handy,
239239
//we provide ours (see http://curl.haxx.se/docs/sslcerts.html).
240240
if(curl_errno($ch) == 60){
241-
curl_setopt($ch, CURLOPT_CAINFO, "../ca_bundle.crt");
241+
curl_setopt($ch, CURLOPT_CAINFO, __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."ca_bundle.crt");
242242
$result = curl_exec($ch);
243243
}
244244

0 commit comments

Comments
 (0)