curl_setopt fails with warning message in the following code: $headerStream = tmpfile(); curl_setopt( $c, CURLOPT_WRITEHEADER, $headerStream ); The warning message is: Warning: curl_setopt(): the provided file handle is not writable in... This has been noted and presumably fixed in php. See http://bugs.php.net/bug.php?id=48733. Where you can find a complete test case. I tested with php-5.2.10-r1 as well, but it did not fix this. Reproducible: Always Steps to Reproduce:
I don't see a reason for not fixing this regression, so it will be part of the next revision.
This is fixed in php-5.2.13 and php-5.3.2, closing.