title: PHP Curl certinfo empty
body: <p>I have a script in PHP that does a curl request to a webservice. The request is made from my server that has an SSL installed and the webservice I send request too has also an SSL.</p>
  
  <pre><code> $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, "https://webservice.com?wsdl");
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
          curl_setopt($ch, CURLOPT_TIMEOUT, 60000);
          curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
          curl_setopt($ch, CURLOPT_POST, 1);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $data);//My post data
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
          curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
          curl_setopt($ch, CURLOPT_CAINFO, "../cacerts.pem");
          curl_setopt($ch, CURLOPT_CAPATH, "../cacerts.pem");
          $headers = [];
          array_push($headers, 'Content-Type: text/xml;charset=UTF-8');
          array_push($headers, 'SoapAction: *');
          curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
          $content = trim(curl_exec($ch));
          var_dump($content);
          var_dump(curl_getinfo($ch));
          var_dump(curl_errno($ch));
          var_dump(curl_error($ch));
          curl_close($ch);
  </code></pre>
  
  <p>The debug info I get is as bellow:</p>
  
  <pre><code>array (size=26)
    'url' =&gt; string 'https://webservice.com?wsdl' (length=42)
    'content_type' =&gt; string 'text/xml;charset=utf-8' (length=22)
    'http_code' =&gt; int 200
    'header_size' =&gt; int 165
    'request_size' =&gt; int 901
    'filetime' =&gt; int -1
    'ssl_verify_result' =&gt; int 0
    'redirect_count' =&gt; int 0
    'total_time' =&gt; float 1.469
    'namelookup_time' =&gt; float 0.25
    'connect_time' =&gt; float 0.688
    'pretransfer_time' =&gt; float 1.188
    'size_upload' =&gt; float 632
    'size_download' =&gt; float 536
    'speed_download' =&gt; float 364
    'speed_upload' =&gt; float 430
    'download_content_length' =&gt; float 536
    'upload_content_length' =&gt; float 632
    'starttransfer_time' =&gt; float 1.469
    'redirect_time' =&gt; float 0
    'redirect_url' =&gt; string '' (length=0)
    'primary_ip' =&gt; string 'xxx.xxx.xxx.xxx' (length=15)
    'certinfo' =&gt; 
      array (size=0)
        empty
    'primary_port' =&gt; int 443
    'local_ip' =&gt; string 'xx.xx.xx.x' (length=10)
    'local_port' =&gt; int 61993
  </code></pre>
  
  <p>Is it normal that the "certinfo" is an empty array? If not why is it empty.
  Thanks.</p>