title: cURL file uploads not working anymore after upgrade from PHP 5.5 to 5.6
body: <p>I've got a cURL upload that fails after upgrading from PHP 5.5 to 5.6:</p>
  
  <pre><code>$aPost = array(
      'file' =&gt; "@".$localFile,
      'default_file' =&gt; 'html_version.html',
      'expiration' =&gt; (2*31*24*60*60)
  )
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $apiurl);
  curl_setopt($ch, CURLOPT_TIMEOUT, 120);
  curl_setopt($ch, CURLOPT_BUFFERSIZE, 128);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $aPost);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $sResponse = curl_exec ($ch);
  </code></pre>
  
  <p>The file seems to be empty on the target system.</p>