title: file_get_contents ignoring verify_peer=>false?
body: <p>file_get_contents with https hosts works just fine, except for a particular host (test api server from some company - ip whitelisted, can't give you URL to test). This rules out not loaded https modules and other initial setup mistakes.</p>
  
  <p>I have tested with multiple PHP installations, all at v5.3.3, 32bits, Debian 32bits.</p>
  
  <p>The request works with cURL, but only if setting <code>curl_setopt($curl, 
  CURLOPT_SSL_VERIFYPEER, 0);</code>. However, setting <code>verify_peer"=&gt;false</code> on the context for file_get_contents seems to make no difference.</p>
  
  <p>With file_get_contents, the exact same request (same URL, same XML POST data) fails with <strong>SSL: Connection reset by peer</strong>:</p>
  
  <pre><code>$arrContextOptions=array(
      "http" =&gt; array(
          "method" =&gt; "POST",
          "header" =&gt; 
              "Content-Type: application/xml; charset=utf-8;\r\n".
              "Connection: close\r\n",
          "ignore_errors" =&gt; true,
          "timeout" =&gt; (float)30.0,
          "content" =&gt; $strRequestXML,
      ),
      "ssl"=&gt;array(
          "allow_self_signed"=&gt;true,
          "verify_peer"=&gt;false,
      ),
  );
  
  file_get_contents("https://somedomain:2000/abc/", false, stream_context_create($arrContextOptions));
  </code></pre>
  
  <p>.</p>
  
  <p>Has anyone encountered this with file_get_contents? <strong>Any ideas how to debug?</strong></p>