go to bug id or search bugs for
When trying to do a PUT request using CURLOPT_INFILE followed by a GET, then the
GET will encounter a "Warning: curl_setopt_array(): supplied argument is not a
valid File-Handle resource" if the file handle has been closed.
This is a bug because you're supposed to free handles when you're not using them.
Setting NULL like with CURLOPT_HEADERFUNCTION (see
not work, it gives "Warning: curl_setopt_array(): supplied argument is not a valid
See also Bug #44866 - leaking FDs is bad, bad program practice.
http://pastebin.com/XLJsZ9JH - line 44 is the CURLOPT_INFILE=>NULL line.
Once CURLOPT_INFILE=>NULL has been set, I expect that the action of setting
CURLOPT_INFILE=>$fp has been reversed (i.e. that curl has been reset to default),
Add a Patch
Add a Pull Request
Please add a test to the patch.
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Automatic comment on behalf of mike
Log: fix bug #64247 (CURLOPT_INFILE doesn't allow reset)