|
@@ 212-216 (lines=5) @@
|
| 209 |
|
// see http://php.net/manual/en/function.is-link.php#91249 |
| 210 |
|
switch(true){ |
| 211 |
|
case is_dir($this->ca_info): |
| 212 |
|
case is_link($this->ca_info) && is_dir(readlink($this->ca_info)): // @codeCoverageIgnore |
| 213 |
|
$this->curl_options[CURLOPT_CAPATH] = $this->ca_info; |
| 214 |
|
unset($this->curl_options[CURLOPT_CAINFO]); |
| 215 |
|
|
| 216 |
|
return true; |
| 217 |
|
|
| 218 |
|
case is_file($this->ca_info): |
| 219 |
|
case is_link($this->ca_info) && is_file(readlink($this->ca_info)): // @codeCoverageIgnore |
|
@@ 219-223 (lines=5) @@
|
| 216 |
|
return true; |
| 217 |
|
|
| 218 |
|
case is_file($this->ca_info): |
| 219 |
|
case is_link($this->ca_info) && is_file(readlink($this->ca_info)): // @codeCoverageIgnore |
| 220 |
|
$this->curl_options[CURLOPT_CAINFO] = $this->ca_info; |
| 221 |
|
unset($this->curl_options[CURLOPT_CAPATH]); |
| 222 |
|
|
| 223 |
|
return true; |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
return false; |