when processing calls with the CURLOPT_FILE (sending contents to a file) in parallel (using curl_mult_exec) the file contents when the contents is small (not sure exact size but in this case its 100 - 300 bytes) is always 0.
After the call finishing i have to call fclose() on the file in order for the contents to be written.
Using normal curl_exec the contents are written properly. I'm using PHP 5.3.10 on ubuntu.
Is this a bug, expected behavior? i can't find anything surrounding this online